Entry point for the glyph grammar. Creates a specification that describes a visualization declaratively. The spec is a plain nested list: it can be inspected, serialized to JSON, and compiled into an interactive HTML widget.
Examples
spec <- glyph(mtcars, x = wt, y = mpg) |>
mark_point()
summary(spec)
#>
#> ── Glyph Specification ─────────────────────────────────────────────────────────
#> • Data: 32 x 11
#> • Marks: 1
#> • Interactions: 0
#> • Animated: FALSE