Package: ggspec 0.1.0
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.
Authors:
ggspec_0.1.0.tar.gz
ggspec_0.1.0.tar.gz(r-4.7-any)ggspec_0.1.0.tar.gz(r-4.6-any)
ggspec_0.1.0.tgz(r-4.6-emscripten)
manual.pdf |manual.html✨
card.svg |card.png
ggspec/json (API)
NEWS
| # Install 'ggspec' in R: |
| install.packages('ggspec', repos = c('https://cran.r-universe.dev', 'https://cloud.r-project.org')) |
Bug tracker:https://github.com/clement-lee/ggspec/issues
Last updated from:14f2da794f. Checks:4 OK. Indexed: no.
| Target | Result | Time | Files | Syslog |
|---|---|---|---|---|
| linux-devel-x86_64 | OK | 187 | ||
| source / vignettes | OK | 193 | ||
| linux-release-x86_64 | OK | 146 | ||
| wasm-release | OK | 151 |
Exports:assert_ggplotcanoncheck_plotcompare_conceptualcompare_plotscompare_visualenrich_specequiv_aesequiv_coordequiv_dataequiv_facetsequiv_labelsequiv_layersequiv_paramsequiv_plotequiv_renderedequiv_scalesexpect_equiv_plothas_layeris_ggplotmapping_existsn_layersspec_aesspec_coordspec_dataspec_facetsspec_labelsspec_layersspec_plotspec_scales
Dependencies:clicpp11dplyrfarvergenericsggplot2gluegtableisobandlabelinglifecyclemagrittrpillarpkgconfigR6RColorBrewerrlangS7scalestibbletidyselectutf8vctrsviridisLitewithr
Equivalence Patterns and Canonicalisation Modes
Rendered fromequivalence-patterns.Rmdusingknitr::rmarkdownon May 28 2026.Last update: 2026-05-28
Started: 2026-05-28
Extracting Plot Specifications with ggspec
Rendered fromextracting-specs.Rmdusingknitr::rmarkdownon May 28 2026.Last update: 2026-05-28
Started: 2026-05-28
Plot Grading and Testing with ggspec
Rendered fromgrading-with-ggspec.Rmdusingknitr::rmarkdownon May 28 2026.Last update: 2026-05-28
Started: 2026-05-28
