Entry point for the glyph grammar. Creates a specification object that describes a visualization declaratively. Unlike ggplot2, the spec is a pure data structure (nested list) that can be serialized, inspected, and compiled to multiple backends.
Examples
spec <- glyph(mtcars, x = wt, y = mpg) |>
mark_point()
summary(spec)
#>
#> ── Glyph Specification ─────────────────────────────────────────────────────────
#> • Data: 32 x 11
#> • Marks: 1
#> • Interactions: 0
#> • Animated: FALSE