# 89 px / 105 px - wasted space png("d:/test.png",width=1369,height=1129,units="px") par(bg='black',fg='gray',col='gray',col.axis='gray',col.lab='gray',col.main='gray',col.sub='gray') plot(x,y,ylim=c(-20,20),xlim=c(min(x),max(x)),pch='.',col = rgb(1,1,1, 0.5),yaxt="n", ann=FALSE) dev.off()
so only "hack" that I thought of is to save graph to a file with dimensions exceeding my need in exact amount to balance the black space and after that do auto-crop function in graphic program original: http://i55.tinypic.com/qzitqq.png cropped: http://i53.tinypic.com/29ntu75.png -- View this message in context: http://r.789695.n4.nabble.com/how-to-get-rid-of-unused-space-on-all-4-borders-in-plot-render-tp3052527p3052675.html Sent from the R help mailing list archive at Nabble.com. ______________________________________________ R-help@r-project.org mailing list https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide http://www.R-project.org/posting-guide.html and provide commented, minimal, self-contained, reproducible code.