View source: R/theme_phontrast.R
| phontrast_palette | R Documentation |
Returns n colors from the Okabe-Ito palette, a qualitative palette
designed to be distinguishable under the common forms of color-vision
deficiency. The palette is reordered so the first two colors (blue and
vermillion) form the highest-contrast pair for two-category contrasts.
For more than eight groups the palette is interpolated, with a warning,
since interpolated qualitative colors lose their guarantees.
phontrast_palette(n = NULL)
n |
Number of colors to return. Defaults to the full palette. |
A character vector of n hex colors, named for n <= 8.
phontrast_palette()
phontrast_palette(2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.