getColors | R Documentation |
Creates n colors from specific palette
getColors(palette, n, rm = NULL)
palette |
A |
n |
An |
rm |
An |
Currently, only the palette 'Set1' is implemented in this function.
'Set1' palette in the package RColorBrewer
originally has 9 colors, but we delete the
yellow color (the 6th one) since it is too much vibrant.
If n
is larger than the mamixum number of colors in the palette, the function
will repeat the palette until n
colors is created.
getColors('Set1', 10)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.