Re: [R] Using metric units in plots

From: Prof Brian Ripley <ripley_at_stats.ox.ac.uk>
Date: Fri, 20 Jun 2008 11:26:03 +0100 (BST)

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

______________________________________________
R-help_at_r-project.org mailing list
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.
Received on Fri 20 Jun 2008 - 10:43:39 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Fri 20 Jun 2008 - 16:30:46 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive