[R] change default measurement unit to millimetre

Jim Lemon jim at bitwrit.com.au
Thu Aug 20 14:25:34 CEST 2009

e-letter wrote:
> Readers,
> How do I configure R so that all units of measurement are in
> millimetres? For example if I want to set the width of a graph, I want
> to write:
> width=100
> and R interprets this value as millimetres.
Hi e-letter,
If you just want a quick hack:

mm2in<-function(mm) return(mm/25.4)




More information about the R-help mailing list