title: PNG image without border/frame in R?
body: <p>I am trying to produce a png file that has no black frame around. I know how it works with the plot command, but I cannot find any solution using png() or image(). These are the command lines of concern:</p>
  
  <pre><code>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()
  </code></pre>
  
  <p>Has anybody an advice?</p>