PCMColorPalette | R Documentation |
A fixed palette of n colors
PCMColorPalette( n, names, colors = structure(hcl(h = seq(15, 375, length = n + 1), l = 65, c = 100)[seq_len(n)], names = names) )
n |
an integer defining the number of colors in the resulting palette. |
names |
a character vector of length 'n'. |
colors |
a vector of n values convertible to colors. Default:
|
A vector of character strings which can be used as color specifications by R graphics functions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.