| 1 |
\name{p.scales} |
| 2 |
\alias{p.scales} |
| 3 |
\title{Conversion between plotting scales: usr, cm, symbol} |
| 4 |
\description{ |
| 5 |
Give scale conversion factors of three coordinate systems in use for |
| 6 |
traditional R graphics: use, cm, symbol. |
| 7 |
} |
| 8 |
\usage{ |
| 9 |
p.scales(unit = relsysize * 2.54 * min(pin), relsysize = 0.05) |
| 10 |
} |
| 11 |
\arguments{ |
| 12 |
\item{unit}{length of unit (or x and y units) of symbol coordinates in cm.} |
| 13 |
\item{relsysize}{same, as a proportion of the plotting area.} |
| 14 |
} |
| 15 |
\value{ |
| 16 |
A numeric 2x2 matrix, with rows named \code{x} and \code{y}, and |
| 17 |
columns, named \code{"sy2usr"} and \code{"usr2cm"} which give the |
| 18 |
scale conversion factors from \sQuote{symbol} (as given) to |
| 19 |
\sQuote{usr} coordinates and from these to \sQuote{cm}, respectively. |
| 20 |
} |
| 21 |
\author{Werner Stahel, 1990; simplification: M.Maechler, 1993, 2004} |
| 22 |
\seealso{\code{\link{par}("usr")}, of also \code{("pin")} on which this |
| 23 |
is based.} |
| 24 |
\examples{ |
| 25 |
p.scales() |
| 26 |
} |
| 27 |
\keyword{dplot} |