ggspec - Extract and Compare 'ggplot2' Plot Specifications as Tidy Data
Frames
Inspects 'ggplot' objects by extracting their full
declarative specification - layers, aesthetic mappings, scales,
facets, coordinate systems, and labels - as tidy data frames. A
second tier of functions enables structural comparison of two
'ggplot' objects, supporting automated plot testing, auditing,
and framework-agnostic grading workflows. Unlike 'ggcheck',
which is designed exclusively for 'learnr'/'gradethis'
pipelines and returns ad-hoc objects, 'ggspec' returns
rectangular, pipeable output and does not require any grading
framework as a dependency.