glyph: A Grammar of Interactive Graphics

Builds interactive graphics from a declarative specification. Marks, scales, tooltips, zoom, brushing, linked selections, animated transitions and multi-plot layouts are declared in one pipeline and stored as a plain R list that can be inspected, saved as JSON or converted to 'Vega-Lite'. Plots are drawn in the browser with 'D3.js' and work at the console, in R Markdown and 'Quarto' documents, and in 'Shiny' apps, where brushed selections are returned to R.

Version: 0.2.0
Depends: R (≥ 4.1.0)
Imports: htmlwidgets (≥ 1.6.0), jsonlite (≥ 1.8.0), rlang (≥ 1.1.0), cli (≥ 3.6.0), grDevices, stats, utils, tools
Suggests: testthat (≥ 3.0.0), knitr, rmarkdown, chromote, htmltools, withr, shiny (≥ 1.5.0), callr, httpuv, pkgload
Published: 2026-10-21
DOI: 10.32614/CRAN.package.glyph
Author: Joash Joshua Ayo [aut, cre], Mike Bostock [ctb, cph] (Author of the bundled D3.js library)
Maintainer: Joash Joshua Ayo <joashjoshua789 at gmail.com>
BugReports: https://github.com/josh45-source/glyph/issues
License: MIT + file LICENSE
Copyright: see file COPYRIGHTS
URL: https://github.com/josh45-source/glyph, https://josh45-source.github.io/glyph/
NeedsCompilation: no
Materials: NEWS
CRAN checks: glyph results

Documentation:

Reference manual: glyph.html , glyph.pdf
Vignettes: Adding a custom mark (source, R code)
Getting Started with glyph (source, R code)
Using glyph in Shiny (source, R code)

Downloads:

Package source: glyph_0.2.0.tar.gz
Windows binaries: r-devel: glyph_0.1.1.zip, r-release: glyph_0.1.1.zip, r-oldrel: glyph_0.1.1.zip
macOS binaries: r-release (arm64): not available, r-oldrel (arm64): not available, r-release (x86_64): glyph_0.2.0.tgz, r-oldrel (x86_64): not available
Old sources: glyph archive

Linking:

Please use the canonical form https://CRAN.R-project.org/package=glyph to link to this page.