show_spec | R Documentation |
Print out the vega plot specification
show_spec(vis, pieces = NULL)
vis |
Visualisation to print |
pieces |
Optional, a character or numeric vector used to pull out selected pieces of the spec |
base <- mtcars %>% ggvis(~mpg, ~wt) %>% layer_points()
base %>% show_spec()
base %>% show_spec("scales")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.