[R] inches to centimeters in Graph settings
Paul Murrell
p.murrell at auckland.ac.nz
Mon May 15 00:16:19 CEST 2006
Hi
Rouyer Tristan wrote:
> Hi R users,
>
> I made a few research on how to convert inches into centimeters for graphics
> settings (especially width and height of the graphic device).
> Apart from the function layout() wich can be settled in centimeters using
> lcm(), I found that writing a function that convert centimeters into inches
> (i.e. x/2.54) was probably the best answer.
>
> Is there somewhere any parameter that could help or should I use/write such a
> function ?
Are you just looking for cm() ?
Perhaps you also want xyinch() ?
Or even maybe cnvrt.coords() in the package 'TeachingDemos' ?
Paul
--
Dr Paul Murrell
Department of Statistics
The University of Auckland
Private Bag 92019
Auckland
New Zealand
64 9 3737599 x85392
paul at stat.auckland.ac.nz
http://www.stat.auckland.ac.nz/~paul/
More information about the R-help
mailing list