trellis.device(device = getOption("device"),
color = !(dev.name == "postscript"),
theme = lattice.getOption("default.theme"),
new = TRUE,
retain = FALSE,
...)standard.theme(name, color)
canonical.theme(name, color)
col.whitebg()
Devices
), but usually
"pdf"
, "po
FALSE
for postscript devices,
TRUE
otherwise. Note that this only applies to the initial
choice of colors, which can be overriddeFALSE
, 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, as well
as height
, width
, etc. See the help file for
individual devices for admissible astandard.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.
canonical.theme
is an alias for standard.theme
. 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 of a misnomer, since it
actually sets the background to transparent rather than white.
par
for standard Rgraphics and, together with
lattice.options
, mostly supplants it (par
settings are mostly ignored by Lattice). Unlike par
,
Trellis settings can be controlled separately for each different
device type (but not concurrently for different instances of the same
device). standard.theme
and col.whitebg
produce
predefined settings (a.k.a. themes), while trellis.device
provides a high level interface to control which trellis.device
is
called automatically when a "trellis"
object is plotted, and
the defaults can be used to provide sufficient control, so in a
properly configured system it is rarely necessary for the user to call
trellis.device
explicitly. The standard.theme
function is intended to provide device
specific settings (e.g. light colors on a grey background for screen
devices, dark colors or black and white for print devices) which were
used as defaults prior to R2.3.0. However, these defaults are not
always appropriate, due to the variety of platforms and hardware
settings on which Ris used, as well as the fact that a plot created
on a particular device may be subsequently used in many different
ways. For this reason, a standard.theme
as the default theme
argument,
e.g. by putting options(lattice.theme = "standard.theme")
in a
startup script (see the entry for theme
above for details).
Lattice
for an overview of the lattice
package.
Devices
for valid choices of device
on your
platform. trellis.par.get
and trellis.par.set
can be
used to query and modify the settings after a device has been
initialized. The par.settings
argument to high level
functions, described in xyplot
, can be used to attach
transient settings to a "trellis"
object.