colorblind.friendly: Colorblind-Friendly Palette Check

View source: R/NatParksPalettes.R

colorblind.friendlyR Documentation

Colorblind-Friendly Palette Check

Description

Checks whether a palette is colorblind-friendly. Colorblind-friendliness tested using the 'colorblindcheck' package. To be colorblind-friendly, all colors in the palettes must be distinguishable with deuteranopia, protanopia, and tritanopia.

Usage

colorblind.friendly(palette_name)

Arguments

palette_name

Name of Palette. Choices are: Acadia, Arches, Arches2, Banff, Bryce Canyon, CapitolReef, Charmonix, Cuyahoga, DeathValley, Denali, Everglades, Glacier, GrandCanyon, Halekala, IguazuFalls, KingsCanyon, LakeNakuru, Olympic, Redwood, RockyMtn, Saguaro, SmokyMtns, SouthDowns, Torres, Triglav, WindCave, Volcanoes, Yellowstone, and Yosemite.

Value

TRUE/FALSE value whether palette is colorblind-friendly

Examples

colorblind.friendly("DeathValley")

NatParksPalettes documentation built on Oct. 10, 2022, 1:06 a.m.