Hi Christian, When I have to do something like this, I usually write it in Postscript using this:
/def mm 2.8346 mul that converts a dimension in mm to points (1/72 inch). However, this won't work in R. It may be possible to set up the device like this: postscript("myfile.ps",paper="a4") par(mar=c(0,0,0,0)) # generate a blank plot plot(0,type="n",xlim=c(0,210),ylim=c(0,297),axes=FALSE) # display lines, etc. in mm with 0,0 at the bottom left dev.off() The resulting file should be printable. Warning, I don't have time to test this right now. Jim On Thu, Jun 7, 2018 at 12:00 AM, Christian Brandstätter <bran.c...@gmail.com> wrote: > Dear List, > > Is it possible to plot in R in "real" units? I would like to draw a > plot on A4 paper, where 1 plot unit would be a mm in reality. Is > something like that possible? I would also like to be able to scale the > plot in x and y direction. > Background: For a project I would have to draw around 65 fast sketches > of elevation courves. > > Copied from here, due to no answer: https://stackoverflow.com/questions > /50606797/plot-in-real-units-mm > > Thank you! > > ______________________________________________ > R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see > 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. ______________________________________________ R-help@r-project.org mailing list -- To UNSUBSCRIBE and more, see 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.