Get and Set Trellis Parameters

USAGE:

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

ARGUMENTS:

name
character string giving the name of a Trellis parameter list.
value
a list giving the new value for parameter name. It must have exactly the same component names as the existing list.
Trellis parameters are stored as an attribute named trellis.settings of the currently active device.
Current parameters are named:
add.line
add.text
axis.line
bar.fill
big.tick
box.3d
box.dot
box.rectangle
box.umbrella
breaks
cloud.3d
dot.line
dot.symbol
fill
hloc.line
hloc.candle
main.label
major.grid
medium.tick
minor.grid
outer.label
pie.fill
plot.line
plot.symbol
reference.line
regions
small.tick
stackbar
strip.background
strip.shingle
superpose.line
superpose.symbol
style.type
wires

VALUE:

For trellis.par.get, a list giving the current value of the named parameter.

SIDE EFFECTS:

If a graphics device is not currently running, a call to trellis.par.get will start the default device via a call to dev.start().

A call to trellis.par.set will update the trellis.settings attribute on the .Device object in frame 0.

DETAILS:

This pair of functions is often used to get current Trellis settings and then modify those values for use in subsequent plots. The Trellis parameters set by trellis.par.set are only in effect for the current graphics device. If you want to make a permanent change to the Trellis parameters you should modify the trellis.settings object that is used by the particular device - see the trellis.settings help file.

SEE ALSO:

.

EXAMPLES:

# Get the plot.line Trellis setting:
pl <- trellis.par.get("plot.line")
# Change the plot.line col value to color 3 and set the
# trellis.settings to use it:
pl$col <- 3
trellis.par.set("plot.line", pl)
#
# Get the strip.background Trellis setting:
sb <- trellis.par.get("strip.background")
# Change the first strip.background to color 9 and set the
# trellis.settings to use it:
sb$col[1] <- 9
trellis.par.set("strip.background", sb)
# Look at all the Trellis settings for the current device:
trellis.par.get()