powered by
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)
The x data is returned, augmented by the following attributes:
x
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
data to be used in plotting
name of the function defining the plscaled scale
tick locations, If NULL, these locations will be generated by the function. An attribute attr(..., "ticklabels") may also be given.
NULL
attr(..., "ticklabels")
if NULL, R's function axTicks will be called if the plscale is a log function.
axTicks
logical: should only the transformed values be returned? Otherwise, axis ranges and tick information is also calculated.
See ploptions
ploptions
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")
Run the code above in your browser using DataLab