View source: R/contrasting_palette.R
contrasting.palette | R Documentation |
This function is simply a vector, as rainbow() is for instance. It returns 20 simple and distinct colors found by Sasha Trubetskoy + black and white.
contrasting.palette(value, black.and.white = TRUE, sequential = TRUE)
value |
The number of desired contrasted colors. If missing, it returns all 20 (if |
black.and.white |
Logical. Choose ot include or not black and white and theend of the list of colors. By default set to |
sequential |
Logical. If the value is a single number, choose if you want to have all colors between the first and the value, or if you want to have the color at the value. By default set too |
For further details on this set of 20 of the 22 colors, see https://sashat.me/2017/01/11/list-of-20-simple-distinct-colors/
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.