big_colorblind_pal: Generate a large colorblind palette

View source: R/big_colorblind_pal.R

big_colorblind_palR Documentation

Generate a large colorblind palette

Description

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

Usage

big_colorblind_pal(
  n_colors,
  shuffle_colors = FALSE,
  drop_yellow = TRUE, drop_black = FALSE)

Arguments

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.

Value

a character vector with the colors


mjdufort/miscHelpers documentation built on July 29, 2024, 6:14 p.m.