Compile a glyph spec to a resolved representation
Usage
compile(spec, engine = "auto", width = NULL, height = NULL)
# S3 method for class 'glyph_spec'
compile(spec, engine = "auto", width = NULL, height = NULL)
# S3 method for class 'glyph_layout'
compile(spec, engine = "auto", width = NULL, height = NULL)Arguments
- spec
A glyph_spec or glyph_layout
- engine
Rendering backend. Only
"html"(D3.js via htmlwidgets) is currently implemented;"auto"resolves to"html". Other values are rejected — earlier versions accepted"canvas"/"webgl"and silently ignored them (no such renderer ever existed), which was misleading.- width
Width in pixels (NULL for auto)
- height
Height in pixels (NULL for auto)