lattice (version 0.3-1)

trellis.device: Initializing Trellis Displays

Description

trellis.device initializes a Trellis display device with appropriate settings of the graphics control parameter trellis.settings.

Usage

trellis.device(device, color = T, bg, new = T, ...)

Arguments

device
device to initialize (possibly as a character string). Admissible values are "x11", "windows", "mac" and "postscript".
color
whether the display should be color or black and white.
bg
background color for the device. Can be changed by par(bg=).
new
logical flag indicating whether a new device should be startted. If new = F is specified, then the options for the current device are changed to the defaults determined by the other arguments.
...
additional parameters to be passed to the device function. See postscript.

Details

trellis.device calls the device function to start a display, sets the global variable trellis.settings to either of two possible values depending on whether color is set, and initializes the underlying Grid display. trellis.settings can subsequently be handled by the interface functions trellis.par.get and trellis.par.set

See Also

trellis.par.set, Grid, postscript,x11, Lattice