View source: R/big_colorblind_pal.R
big_colorblind_pal | R Documentation |
Generate a large colorblind palette, optionally with the colors shuffled to make adjacent colors more distinctive. This is a wrapper for colorblind_pal() and colorRampPalette(). It also drops the difficult-to-see yellow of colorblind_pal
big_colorblind_pal(
n_colors,
shuffle_colors = FALSE,
drop_yellow = TRUE, drop_black = FALSE)
n_colors |
integer, the number of colors in the palette. No default. Anything less than the number of colors in colorblind_pal (after dropping yellow and/or black) just returns the colorblind_pal colors. |
shuffle_colors |
logical, whether to shuffle the palette order. Defaults to FALSE. |
drop_yellow |
logical, whether to drop the difficult-to-see yellow color. Defaults to TRUE. |
drop_black |
logical, whether to drop the black from the palette. Defaults to FALSE. |
a character vector with the colors
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.