I am trying to set the margin size for a PDF created using R. Using mar, I can reduce the margins of the chart. However, the graph below is still a square in the middle of the page, and does not use all the space. How to change this?
pdf(file = "test.pdf", paper="a4r") par(mar=c(0,0,0,0)+0.1) plot(1:10,1:10) dev.off()
Thanks!

source share