Skip to contents

Utility function to check if a palette name is colorblind-accessible.

Usage

is_colorblind_safe(palette)

Arguments

palette

Character. Palette name to check.

Value

Logical. TRUE if colorblind-friendly.

Examples

is_colorblind_safe("okabe_ito")  # TRUE
#> [1] TRUE
is_colorblind_safe("default")    # FALSE
#> [1] FALSE