R Default Palette Colors
DESCRIPTION:
Named character vector containing the RGB hex string values for the 8
colors in the default R global color palette. These are from the X11
color set. They can be used to set the default palette if the goal is
to use the same default colors in S-PLUS as in R.
EXAMPLES:
# Select the R default palette colors from the X11 colors
x11.colors[c("black", "red", "green3", "blue", "cyan", "magenta",
"yellow", "gray")]
# Set the default palette and image palette to match R
palette(r.default.colors)
image.palette(r.default.image.colors)
# Set the X11 colors as the preferred named colors and the CSS colors
# as the ones to use when a color is not in the X11 set.
add.color.values(x11.colors, new=T)
add.color.values(css.colors)