Learn R Programming

lattice (version 0.3-1)

trellis.par.get: Manipulating Graphical Parameters for Trellis Displays

Description

These functions are used to query and modify graphical parameters for fine control of Trellis displays.

Usage

trellis.par.get(name)
trellis.par.set(name, value)
trellis.settings

Arguments

name
name of a component in quotes. For possible values type names(trellis.settings).
value
desired value of the component.

Value

  • trellis.par.get returns a list giving parameters for that component .

Details

Lattice functions get their default graphical parameters from a global variable named trellis.settings (type print(trellis.settings) to see the current value). There are a couple of settings defined in the package, which are set when trellis.device is called. The functions trellis.par.* are meant to be interfaces to this variable. trellis.par.get is usually used inside trellis functions to get graphical parameters before plotting. This enables device customization as well as modifications by users through the trellis.par.set interface. Typical usage is:

add.line <- trellis.par.get("add.line")

add.line$col <- "red"

add.line <- trellis.par.set("add.line", add.line)

See Also

trellis.device, trellis.settings, Lattice