limsHandler(x=NULL, y=NULL, z=NULL, ..., lim.borders = 0.1)
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)x, y and/or z data series....lim ranges by when generating axes or scales. The
lim.borders are relative proportions. So, the default setting
of 0.1 adds an extra +/- 10 are supplied thescales
argument used with lattice functions. Current
default elements draw (= TRUE), arrows (= FALSE),
tick.number (= 5), abbreviate (= FALSEscales before evaluation.FALSE. Should the
box lattice typically places around standard plots be
removed? This can be useful if you are using a panel...
function to generate axes within the plot.x
and y locations where the scale is to be drawn (x.loc
ans y.loc), and the limits of the range to be annotated on the
scale (lim). Note: These label.before is a logical, which controls the position of
annotation, tick marks and/or arrows, etc relative to the scale
line (i.e., above/left before or below/right after). By default
palimsHandler returns a list containing ...lim ranges for
any of the elements code{x}, y and/or z supplied to it.
localScalesHandler returns a list containing the
elements: scales, panel.scales and possibly
par.settings. scales turns off the standard
axes annotation. panel.scales is a list of named elements, one
per named axis, describing the axis layout. If
remove.box = TRUE, the additional argument par.settings
is also supplied.
All arguments should be passed on to the associated plot.
panel.scales or axis-specific elements in panel.scales
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.limsHander generates xlim, ylim and/or zlim
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 panel... function
like panel.localScale.xyplot in lattice.## See trianglePlot Example 2 for example applicationRun the code above in your browser using DataLab