powered by
Runs all available audit checks on a ggplot2 object and returns a comprehensive report of potential issues and suggestions.
gg_audit(plot, checks = "all")
A list with class "gg_audit_report" containing audit results
A ggplot2 object
Character vector of checks to run. Default is "all". Options: "color", "scales", "text", "accessibility", "labels"
library(ggplot2) p <- ggplot(mtcars, aes(wt, mpg, color = factor(cyl))) + geom_point() + scale_color_manual(values = c("red", "green", "blue")) report <- gg_audit(p) print(report)
Run the code above in your browser using DataLab