distinctcolors | R Documentation |
Find a vector of distinct R built-in colors for a pre-defined length ('nrcol').
distinctcolors( nrcol = 10, method = "RGB", bw = FALSE, show = TRUE, simulate = TRUE )
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 |
distinctcolors
returns a vector containing R built-in colors in hexadecimal representation.
Bjoern Schwalb
disco
, colorpalette
, demotour
distinctcolors()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.