distinctcolors {LSD} | R Documentation |
Find preferably distinct R built-in colors
Description
Find a vector of distinct R built-in colors for a pre-defined length ('nrcol').
Usage
distinctcolors(
nrcol = 10,
method = "RGB",
bw = FALSE,
show = TRUE,
simulate = TRUE
)
Arguments
nrcol |
a non-negative integer specifying the number of colors to be used (defaults to the length of |
method |
character string implying the method for color selection to be used ("RGB" uses a grid in the RGB space (default), "Lab" uses a grid in the Lab space, "goldenratio" uses the golden ratio as spacing between colors in the HSV color space). |
bw |
logical: if |
show |
logical: if |
simulate |
logical: if |
Value
distinctcolors
returns a vector containing R built-in colors in hexadecimal representation.
Author(s)
Bjoern Schwalb
See Also
Examples
distinctcolors()