In development functions for lims and scales handling with lattice plots.
1 2 3 4 5 6 7 8 9 10 11 12
limsHandler(x=NULL, y=NULL, z=NULL, ..., lim.borders = 0.05) localScalesHandler(scales = NULL, ..., allowed.scales =c("x", "y"), disallowed.scales = NULL, remove.box = FALSE) panel.localScale(x.loc, y.loc, lim, ..., panel.scale = NULL, label.before = TRUE, x.offset = NULL, y.offset = NULL, axis = TRUE, ticks = TRUE, annotation = TRUE) yscale.component.log10(...) xscale.component.log10(...)
numeric vector, giving the relative border to
A list of elements like the
A character vector containing the names of the axes to be generated for as part of a local axis.
A character vector containing the names
of any axes that are not required. Note: If found, these are
A logical, default
two member vectors setting the
Scale annotation overrides.
If supplied, fine controls for the
appearance of the axis line, axis tick marks and axis annotation
on the generated scale. These can be vectors, in which they are
assumed to be color assignments, or lists of common plot parameters,
ranges for axes or color scales for use in a range of plots.
localScalesHandler provides a relatively crude mechanism
for the removal of conventional
lattice plot axes and
the generation of alternative axes using a
limsHandler returns a list containing
...lim ranges for
any of the elements codex,
z supplied to it.
localScalesHandler returns a list containing the
panel.scales and possibly
scales turns off the standard
panel.scales is a list of named elements, one
per named axis, describing the axis layout. If
remove.box = TRUE, the additional argument
is also supplied.
All arguments should be passed on to the associated plot.
panel.scales or axis-specific elements in
can then be evaluated by an associated
panel... function run
from within the lattice plot call. This would typically
take the form:
panel.my.axis(panel.scale = panel.scale$axis, ...)
panel.localScale is a local axis/scale plotter. It can be used
in combination with
localScalesHandler, and should called
once for each axis that is required, or it can be used 'stand alone'
panel to add a local scale to a lattice plot.
simple axis transforms for use with log to the base 10 transformed
panel.localScale is currently in revision. Scale arrows are
currently not available.
These function makes extensive use of code developed by others.
lattice: Sarkar, Deepayan (2008) Lattice: Multivariate Data Visualization with R. Springer, New York. ISBN 978-0-387-75968-5
In other packages:
## See trianglePlot Example 2 for example application