![](/img/trans.png)
[英]Using R to create an image don't want the white border or the title to appear only the PNG image
[英]PNG image without border/frame in R?
我試圖產生一個沒有黑框的png文件。 我知道它如何與plot命令一起工作,但是我找不到使用png()或image()的解決方案。 這些是需要關注的命令行:
png(filename = paste(outDir,"/PRCP",yy0,mm0,dd0,"+",sprintf("%03.0f",(lt*6)),"h_temp.png",sep=""), width = (dPm[2]), height = (dPm[1]), bg = "transparent")
par(mai=c(0,0,0,0))
image(Dem[,dPm[1]:1],col=grey((13:0)/15),useRaster = TRUE, add = FALSE,zlim=range(Dem,na.rm=TRUE))
dev.off()
有沒有人建議?
好的,在嘗試了許多不同的選項(不成功)之后,我終於找到了答案。 如果使用image(),則必須放置axis = FALSE才能獲得框架
PS:感謝您提供的所有幫助!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.