Learn R Programming

GGenemy (version 0.1.0)

gg_audit_text: Audit Text Elements for Readability

Description

Checks font sizes, label overlap, and text readability issues.

Usage

gg_audit_text(plot)

Value

A list of issues, warnings, and suggestions

Arguments

plot

A ggplot2 object

Examples

Run this code
library(ggplot2)
p <- ggplot(mtcars, aes(x = rownames(mtcars), y = mpg)) +
  geom_col() +
  theme(axis.text.x = element_text(size = 6))
gg_audit_text(p)

Run the code above in your browser using DataLab