as.vega | R Documentation |
This generic function powers the coercion of ggvis objects to vega compatible data structures.
as.vega(x, ...)
## S3 method for class 'ggvis'
as.vega(x, session = NULL, dynamic = FALSE, ...)
x |
an object to convert to vega |
session |
a session object from shiny |
dynamic |
whether to generate dynamic or static spec |
a list. When converted to JSON, will be the type of structure that vega expects.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.