powered by
Checks if a ggplot2 object uses colors that may be problematic for colorblind users and provides detailed analysis.
gg_audit_color(plot)
A list of issues, warnings, and suggestions
A ggplot2 object
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