palette
Color Palette

Description

Stores a group of colors as a palette

Usage

palette(value)

Arguments

value a character vector containing color names or strings. The color names should be taken from the output of colors() and the color strings should be of the form "#RRGGBB" or "#RRGGBBAA", giving the 2-digit hexadecimal (range 00-FF) values of the red, green, blue, and possibly alpha (opacity) values of the colors.

The special string "default" means to use the default palette.

Details

This function is used mainly in conjunction with the R graphics system. Spotfire Enterprise Runtime for R does not have a graphics system and this function is supplied only to make a few other functions work in the same way that they do in R.
Value
returns a character vector giving the previously-specified palette.
See Also
col2rgb
Examples
oldPalette <- palette(c("#ff0000", "green", "#0000ffff", "#aabbcc77"))
palette() # show canonical names for current palette colors
col2rgb(3)
palette(oldPalette)
Package grDevices version 6.1.1-7
Package Index