| compile | R Documentation |
Compile a glyph spec to a resolved representation
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)
spec |
A glyph_spec or glyph_layout |
engine |
Rendering backend. Only |
width |
Width in pixels (NULL for auto) |
height |
Height in pixels (NULL for auto) |
A glyph_compiled object (a list with resolved data + JSON)
A glyph_compiled object containing the resolved spec,
JSON string, and engine selection
A glyph_compiled object containing the resolved layout spec
and JSON string
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.