trellis.device
initializes a Trellis display device with
appropriate settings of the graphics control parameters.trellis.device(device = getOption("device"),
color = !(dev.name == "postscript"),
theme = lattice.getOption("default.theme"),
new = TRUE,
retain = FALSE,
...)
canonical.theme(name, color)
col.whitebg()
canonical.theme
returns a list of components defining graphical
parameter settings for Lattice displays. It is used internally in
trellis.device
, and can also be used as the theme
argument to trellis.par.set
, or even as theme
in
trellis.device
to use the defaults for another device. col.whitebg
returns a similar but smaller list.
trellis.device
calls the device
function to start a
display, and sets an appropriate component of the variable
lattice.theme
(in an unexported environment named
.LatticeEnv
) to appropriate (device-specific) values. The
device specific settings are determined by canonical.theme
which returns a list (see below). The settings can subsequently be
handled by the interface functions trellis.par.get
and
trellis.par.set
.
col.whitebg
returns a similar (but smaller) list that is
suitable as the theme
argument to trellis.device
and
trellis.par.set
. It contains settings values which
provide colors suitable for plotting on a white background. Note that
the name col.whitebg
is somewhat a misnomer, since it actually
sets the background to transparent rather than white.
trellis.par.set
, postscript
,
x11
, Lattice