[R] Alternative to cxy in R

Prof Brian D Ripley ripley at stats.ox.ac.uk
Wed Jan 5 11:11:08 CET 2000

On Wed, 5 Jan 2000, [iso-8859-1] Jesús María Frías Celayeta wrote:

> good morning to the R-help list!,
> 	I would like to ask if there is an alternative to the S ploting
> parameter "cxy" in R. I am trying to port some S code to R that makes use
> of this "cxy" parameter to scale the graphics, and I don't find this
> parameter in help(par).

R has cin, which gives this in inches, and pin and usr will enable
you to convert these to user coordinates (I think those are the
right ones).

You can usually make use of csi, for example yinch(par("csi")) is a
reasonable replacement for par("cxy")[2], and by use of cra you
can rescale to the width.

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 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

r-help mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-help-request at stat.math.ethz.ch

More information about the R-help mailing list