Learn R Programming

GGenemy (version 0.1.0)

gg_audit_scales: Audit Scales and Axes for Misleading Practices

Description

Checks for truncated axes, inappropriate transformations, and other scale-related issues that can mislead viewers.

Usage

gg_audit_scales(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)) +
  geom_point() +
  ylim(15, 35)
gg_audit_scales(p)

Run the code above in your browser using DataLab