Usage
layer(..., data, magicdots, exclude,
packets, rows, columns, groups,
style, force, theme, under, superpose,
eval, etc) ## these 2 deprecated
layer_(...)
glayer(...)
glayer_(...)
## S3 method for class 'trellis':
+(object, lay)
drawLayer(lay)
flattenPanel(object)
Arguments
...
expressions as they would appear in a panel function. These can
refer to the panel function arguments (such as x
, y
and subscripts
), and also to any named objects passed in
through the data
data
optional. A named list
containing objects needed when
evaluating (drawing) the layer.
magicdots, exclude
if magicdots = TRUE
, the default, any reference to
...
in the layer expressions will only pass on those arguments from the
panel function which are not named in the call (thus avoiding
dupli
packets, rows, columns, groups
restricts the layer to draw only in specified packets (which refer
to individual panels, but are independent of their layout), or rows
or columns of the trellis layout (trellis.currentLayout
style
style index of the layer, used only to set lattice graphical
parameters (same effect as in grouped displays). Note that this will
use the theme settings in effect in the existing plot, which may or
may not be what is desired. It may be nece
force
force = TRUE
is just a shorthand for
theme = trellis.par.get()
, which is useful for over-riding
the theme settings in effect in an existing plot. For instance, if
the original plot specified par.settings = si
theme
a style specification to be passed to trellis.par.set
which has effect only while drawing the layer. One can pass a whole
theme specification list, such as theme = custom.theme()
under
whether the layer should be drawn before the existing panel
function. This defaults to TRUE
in the convenience functions
layer_()
and glayer_()
.
superpose
if TRUE
, the layer will be drawn once for
each level of any groups
in the plot, using
panel.superpose
. This defaults to TRUE
in the
convenience eval, etc
These two arguments are now Deprecated and should not be used in new
code. Rather than using eval
, use data
. It is not
necessary to use etc
because that happens automatically with
magicdots