get_cvd_safe_palettes: Get CVD-Safe Van Gogh Palettes

View source: R/check_vangogh_cvd.R

get_cvd_safe_palettesR Documentation

Get CVD-Safe Van Gogh Palettes

Description

Returns a list of Van Gogh palettes that meet minimum accessibility standards for color vision deficiency.

Usage

get_cvd_safe_palettes(
  min_distance = 15,
  cvd_types = c("deutan", "protan", "tritan")
)

Arguments

min_distance

Numeric. Minimum CIELAB distance threshold. Default 15.

cvd_types

Character vector. Which CVD types to check. Options: "deutan", "protan", "tritan". Default checks all.

Value

Character vector of palette names that meet the criteria

Examples

## Not run: 
# Get highly accessible palettes
safe_palettes <- get_cvd_safe_palettes(min_distance = 20)

# Use a safe palette
ggplot(iris, aes(Sepal.Length, Sepal.Width, color = Species)) +
  geom_point() +
  scale_color_vangogh(safe_palettes[1])

## End(Not run)


vangogh documentation built on Nov. 5, 2025, 7:39 p.m.