getColors | R Documentation |
getColors
returns a vector with colours.
getColors(n, levels = NA, colSc = "normal")
n |
Number of colour classes, used if levels are NA. |
levels |
Levels defining the classes, if NA. |
colSc |
Colour scheme: [normal|normal_reversed|normalwhite|sharp|sharp100|sharp_redgreenblue|sharp_cyanbrown|any of the RColorBrewer color palettes|vector of colours]; defaults to normal which uses topo.colors(); sharp* requires levels to be set that cross 0 (100); if colSc is not any of the pre-defined strings for colour schemes, colSc is returned and assumed to be a vector that defines colours |
Vector of colours.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.