Learn R Programming

vangogh (version 0.1.3)

check_all_vangogh_cvd: Batch Check CVD Accessibility for All Palettes

Description

Runs CVD accessibility checks across all Van Gogh palettes and returns a summary data frame. Useful for generating documentation and identifying the most accessible palettes.

Usage

check_all_vangogh_cvd(simulate = FALSE)

Value

A data frame with CVD scores for all palettes

Arguments

simulate

Logical. If TRUE, displays simulations for each palette. Default FALSE.

Examples

Run this code
if (FALSE) {
# Get scores for all palettes
all_scores <- check_all_vangogh_cvd()

# Find the most accessible palettes
library(dplyr)
all_scores %>%
  group_by(palette) %>%
  summarise(avg_distance = mean(min_distance)) %>%
  arrange(desc(avg_distance))
}

Run the code above in your browser using DataLab