plscale | R Documentation |
Generates plscaled values and appropriate tick mark positions and labels for expressing a variable on a plscaled scale, e.g., on log scale
plscale(x, plscale = "log10", ticksat = NULL, logscale = NULL,
valuesonly = FALSE, ploptions = NULL)
x |
data to be used in plotting |
plscale |
name of the function defining the plscaled scale |
ticksat |
tick locations, If |
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:
the plscaled values to be used for plotting
the location of tick marks (plscaled values)
the labels for the tick marks showing the original scale
the 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
axTicks, prettyscale
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"), type="l")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.