effectsTheme: Set the lattice Theme for Effect Plots

effectsThemeR Documentation

Set the lattice Theme for Effect Plots

Description

Set the lattice theme (see trellis.device) appropriately for effect plots. This function is invoked automatically when the effects package is loaded if the lattice package hasn't previously been loaded. A typical call is lattice::trellis.par.set(effectsTheme()).

Usage

effectsTheme(strip.background = list(col = gray(seq(0.95, 0.5, length = 3))), 
          strip.shingle = list(col = "black"), clip = list(strip = "off"), 
          superpose.line = list(lwd = c(2, rep(1, 6))), col)

Arguments

strip.background

colors for the background of conditioning strips at the top of each panel; the default uses shades of gray and makes allowance for up to three conditioning variables.

strip.shingle

when lines rather than numeric values are used to indicate the values of conditioning variables, the default sets the color of the lines to black.

clip

the default allows lines showing values of conditioning variables to extend slightly beyond the boundaries of the strips—making the lines more visible at the extremes.

superpose.line

the default sets the line width of the first (of seven) lines to 2.

col

an optional argument specifying the colors to use for lines and symbolst: if col = "car", then the color palette for the car package is used (see carPalette); col = "R", then the current R palette (ignoring the first entry which is "black" in the standard R palette) is used (see palette); if col = "colorblind", then a colorblind-friendly palette (from https://jfly.uni-koeln.de/color/ but ignoring black) is used; if a vector of color specifications, then these are used. If col isn't specified then the current lattice colors are used.

Value

a list suitable as an argument for trellis.par.set; current values of modified parameters are supplied as an attribute.

Author(s)

John Fox jfox@mcmaster.ca

See Also

trellis.device, trellis.par.set

Examples

## Not run: 
lattice::trellis.par.set(effectsTheme())

## End(Not run)

effects documentation built on July 13, 2022, 5:06 p.m.