Starts Display Device For Trellis Functions

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

USAGE:
trellis.device(device = <<see below>>, color = <<see below>>,
               printer.type="postscript", ...)

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, openlook, postscript win.graph and win.printer (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, openlook and win.graph and FALSE for postscript and win.printer. Alternatively, color can be an object specifying the colors argument for the postscript device.
printer.type:
a character string specifying what type of output win.printer will create. Possible values are "postscript" or "ps" for PostScript printers and "pcl" or "laserjet" for printers supporting Hewlett Packard's PCL graphics language. Only enough of the character string to determine a unique match is required and case is ignored. The argument is only used when device is win.printer.
...:
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.

On MS-Windows, when device is win.graph or win.printer, the Color Scheme under the dialog menu Options/Color Schemes is set to the Trellis or Trellis Black and White color scheme.


SEE ALSO:
trellis.settings , trellis.par.set , win.colorscheme (on MS-Windows only).

EXAMPLES:
# start up a motif device on Unix:
trellis.device(motif)

# start up a win.printer device with output to a LaserJet printer: trellis.device(win.printer, printer.type="pcl")