vw_as_json | R Documentation |
For Vega and Vega-Lite, the translation between lists and JSON is a little
bit particular. This function, vw_as_json()
, can be used to translate
to JSON; as_vegaspec()
can be used to translate from JSON.
vw_as_json(spec, pretty = TRUE)
spec |
An object to be coerced to |
pretty |
|
jsonlite::json
object
as_vegaspec()
vw_as_json(spec_mtcars)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.