vw_examine | R Documentation |
This is a thin wrapper to listviewer::jsonedit()
,
use to interactively examine a Vega or Vega-Lite specification.
vw_examine(
spec,
mode = "view",
modes = c("view", "code", "form", "text", "tree"),
...,
width = NULL,
height = NULL,
elementId = NULL
)
spec |
An object to be coerced to |
mode |
|
modes |
string |
... |
|
width |
integer in pixels defining the width of the |
height |
integer in pixels defining the height of the |
elementId |
character to specify valid |
S3 object of class jsonedit
and htmlwidget
vw_examine(spec_mtcars)
spec_mtcars_autosize <-
spec_mtcars %>%
vw_autosize(width = 300, height = 300)
vw_examine(spec_mtcars_autosize)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.