custom.theme {latticeExtra} | R Documentation |
Creates a lattice theme given a few colors. Non-color settings are not included. The colors are typically used to define the standard grouping (superposition) colors, and the first color is used for ungrouped displays.
custom.theme(symbol = brewer.pal(n = 8, name = "Dark2"), fill = brewer.pal(n = 12, name = "Set3"), region = brewer.pal(n = 11, name = "Spectral"), reference = "#e8e8e8", bg = "transparent", fg = "black")
symbol |
a vector of symbol colors. |
fill |
a vector of fill colors (for barcharts, etc.) |
region |
a vector of colors that is used to define a continuous
color gradient using colorRampPalette |
reference |
a color for reference lines and such |
bg |
a background color |
fg |
a foreground color, primarily for annotation |
A list that can be supplied to
trellis.par.get
or as the
theme
argument to
trellis.device
.
Deepayan Sarkar