trellis.device
initializes a Trellis display device with
appropriate settings of the graphics control parameter
trellis.settings
.trellis.device(device = getOption("device"),
color = !(dev.name == "postscript"),
theme = getOption("lattice.theme"),
bg = NULL,
new = TRUE,
retain = FALSE,
...)
canonical.theme(name, color)
FALSE
for postscript devices, TRUE
otherwise.A possible use of this argument is to change the default settings at
FALSE
, the options for the current device are
changed to the defaults determined by the other arguments.TRUE
and a setting for this device already
exists, then that is used instead of the defaults for this
device. By default, pre-existing settings are overwritten (and
lost)..Device
device
function, most commonly file
for non-screen devices.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 an argument to
lset
, or even as theme
in trellis.device
to use
the defaults for another device.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
, trellis.par.set
and lset
trellis.par.set
, lset
,
postscript
,x11
, Lattice