Starts Display Device For Trellis Functions

DESCRIPTION:

Starts a graphics device to be used with the Trellis Display functions. Appropriate parameter settings such as color, symbol and line type are set for the device.

USAGE:

trellis.device(device = <<see below>>, color = <<see below>>, ...)

OPTIONAL ARGUMENTS:

device
the name of the graphics device to use, this can be a character string or just the name. Currently supported devices are: motif, postscript graphsheet java.graph pdf.graph and wmf.graph (not all devices are available in all versions of S-PLUS). If device is missing, an appropriate one will be chosen automatically.
color
if TRUE then device will be set up with color parameters, if FALSE the device will be set with monochrome parameters. By default this is TRUE for motif, java.graph, and graphsheet and FALSE for postscript. Alternatively, color can be an object specifying the colors argument for the postscript device.
...
additional arguments will be passed to the function device.

SIDE EFFECTS:

The trellis.device function starts a graphics device and it attaches a list of graphics parameter settings, named trellis.setting, as an attribute to the .Device object in frame 0. The Trellis functions access the values in the list for setting graphical parameters. The values in the list have been selected to provide good choices of parameter settings within the capabilities of the device.

SEE ALSO:

EXAMPLES:

# Start up a motif device on Unix:
trellis.device(motif)
xyplot(NOx ~ C | E, data=ethanol)

# Start up a graphsheet device on Windows, creating JPEG files:
trellis.device(graphsheet, file="plot##.jpg", format="JPEG")
bwplot(voice.part ~ height, data=singer, aspect=1)