plscale {plgraphics} | R Documentation |
Generates plscaleed values and appropriate tick mark positions and labels for expressing a variable on a plscaleed scale, e.g., on log scale
plscale(x, plscale = "log10", ticksat = NULL, n = NULL, logscale = NULL, valuesonly = FALSE, ploptions = NULL)
x |
data to be used in plotting |
plscale |
name of the function defining the plscaleed scale |
ticksat |
tick locations, If |
n |
approximate number of tick marks, as in |
logscale |
if |
valuesonly |
logical: should only the transformed values be returned? Otherwise, axis ranges and tick information is also calculated. |
ploptions |
See |
The x
data is returned, augmented by the following attributes:
numvaluesthe plscaleed values to be used for plotting
ticksatthe location of tick marks (plscaleed values)
ticklabelsthe labels for the tick marks showing the original scale
plscalethe name of the function used for the plscaleation
Besides the logarithmic plscale that is supported by core R graphics, any other plscaleation may be used, notably the so-called "first aid plscaleations".
Werner A. Stahel
x <- 10^seq(-1,3,0.5) plscale(x) xx <- plscale(x, plscale="sqrt") plyx(xx) x <- seq(0,100,2) plyx(plscale(x, plscale="asinp", n=10), type="l")