[R] Using metric units in plots

Prof Brian Ripley ripley at stats.ox.ac.uk
Fri Jun 20 12:26:03 CEST 2008


On Fri, 20 Jun 2008, Philip Rhoades wrote:

> People,
>
> It appears that one has to use Imperial measurements in plot parameters?  I 
> can't find any info on using metric units . .

In package grid you can use several different units.

In base graphics there are a very few par()s that use inches (and I am 
pretty sure that comes from the US unit as used in S, not the 'Imperial' 
one -- see e.g. Wikipedia).  But those are rarely used.

Also most graphics devices are dimensioned in inches with resolutions in 
dpi.

Function cm() might help you.

>
> Thanks,
>
> Phil.
> -- 
> Philip Rhoades
>
> Pricom Pty Limited  (ACN 003 252 275  ABN 91 003 252 275)
> GPO Box 3411
> Sydney NSW	2001
> Australia
> E-mail:  phil at pricom.com.au

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272866 (PA)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595



More information about the R-help mailing list