lattice.options(...)
lattice.getOption(name)name = value or by passing a list
of such tagged values. Existing values can be retrieved by
supplying the names (as character strings) of the components as
unnamed arguments.
lattice.getOption returns the value of a single component,
whereas lattice.options always returns a list with one or more
named components. When changing the values of components, the old
values of the modified components are returned by
lattice.options. If called without any arguments, the full
list is returned.
These functions are modeled on options and getOption,
and behave similarly for the most part. Some of the available
components are documented here, but not all. The purpose of the ones
not documented are either fairly obvious, or not of interest to the
end-user.
panel.errorNULL. If the former, every call to the
panel function will be wrapped inside tryCatch with
the specified function as an error handler. The default is to use
the panel.error function. This prevents the plot
from failing due to errors in a single panel, and leaving the grid
operations in an unmanageable state. If set to NULL,
errors in panel functions will not be caught using
tryCatch.
save.object"trellis" object should
be saved when plotted for subsequent retrieval and further
manipulation. Defaults to TRUE.
layout.widths, layout.heights"trellis" object. Each named
component is a list of arguments to the grid function
unit (x, units, and optionally
data). Usually not of interest to the end-user, who should instead use
the similiarly named component in the graphical settings,
modifiable using trellis.par.set.
drop.unused.levelscond and data, both logical flags. The flags
indicate whether the unused levels of factors (conditioning
variables and primary variables respectively) will be dropped,
which is usually relevant when a subsetting operation is performed
or an 'interaction' is created. See xyplot for more
details. Note that this does not control dropping of levels of
the 'groups' argument.
legend.bbox"full" or "panel". This
determines the interpretation of x and y when
space="inside" in key (determining the legend; see
xyplot): either the full figure region ('"full"'),
or just the region that bounds the panels and strips ('"panel"').
default.argsas.table, aspect,
between, skip, strip,
xscale.components, yscale.components, and
axis.
highlight.gpargpar used to highlight a viewport chosen using
trellis.focus.
bankingbanking.
axis.padding"numeric" and "factor", both scalar numbers.
Panel limits are extended by this amount, to provide padding
for numeric and factor scales respectively. The value for
numeric is multiplicative, whereas factor is additive.
skip.boundary.labels
interaction.sepxyplot).
axis.units
In addition, there is an option for the default prepanel and panel
function for each high-level function; e.g., panel.xyplot and
prepanel.default.xyplot for xyplot. The options
for the others have similarly patterned names.
options, trellis.device,
trellis.par.get, Lattice
names(lattice.options())
str(lattice.getOption("layout.widths"), max.level = 2)
Run the code above in your browser using DataLab