Learn R Programming

GGenemy (version 0.1.0)

gg_audit_color: Audit Color Palette for Accessibility Issues

Description

Checks if a ggplot2 object uses colors that may be problematic for colorblind users and provides detailed analysis.

Usage

gg_audit_color(plot)

Value

A list of issues, warnings, and suggestions

Arguments

plot

A ggplot2 object

Examples

Run this code
library(ggplot2)
p <- ggplot(mtcars, aes(wt, mpg, color = factor(cyl))) +
  geom_point() +
  scale_color_manual(values = c("red", "green", "blue"))
gg_audit_color(p)

Run the code above in your browser using DataLab