to_vegalite: Export the spec as Vega-Lite JSON (interop)

View source: R/render.R

to_vegaliteR Documentation

Export the spec as Vega-Lite JSON (interop)

Description

Because glyph's spec is structurally similar to Vega-Lite, we can export to Vega-Lite JSON for use in Python (Altair), JavaScript, or the Vega Editor.

Usage

to_vegalite(spec)

Arguments

spec

A glyph_spec

Value

A JSON string in Vega-Lite format


glyph documentation built on Oct. 21, 2026, 5:12 p.m.