getColorsVector | R Documentation |
This function returns a list of colors based on the
brewer.pal()
function
getColorsVector(numNeededColors = 0L)
numNeededColors |
The number of returned colors. If omitted it returns all available colors |
The colors are taken from the brewer.pal.info()
sets with
Set1
, Set2
, Set3
placed first.
an array of RGB
colors of the wanted size
colorsVector <- getColorsVector(17)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.