Learn R Programming

latticeExtra (version 0.5-1)

custom.theme: Create a lattice theme based on specified colors

Description

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.

Usage

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")

Arguments

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

Value