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 ? Thanks, Tristan Rouyer
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/
Seemingly Similar Threads
- how to save a plot in a given size in inches or centimeters
- Problem with the cluster package
- measurement unit
- error: ordered comparison between pointer and zero ('address' (aka 'unsigned char *') and 'int')
- error: ordered comparison between pointer and zero ('address' (aka 'unsigned char *') and 'int')