Description Usage Arguments Value
It is an internal function usually applied for choosing the palette for clusters. Depending if the number of clusters is more than 12 or not, one of two built-in palettes will be applied. If you give your vector of colors, the function will not change them. If the number of clusters is more than 26, it will copy colors to get the needed length of the palette.
1 | choosePalette(colorPalette, clustersNumber)
|
colorPalette |
Either "default" or a vector of colors, for example c("yellow", "#CC79A7"). |
clustersNumber |
number of clusters in the output palette. |
Color palette with the number of colors equal to the clusterNumber parameter.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.