Description Usage Arguments See Also Examples
This requires that the external program vg2png
is installed. This is
part of the vega
node.js module.
1 2 3 | export_png(vis, file = NULL)
export_svg(vis, file = NULL)
|
vis |
A ggvis object. |
file |
Output file name. If NULL, defaults to "plot.svg" or "plot.png". |
https://github.com/trifacta/vega for information on installing
vg2png
and vg2svg
.
1 2 3 4 | ## Not run:
mtcars %>% ggvis(x = ~wt) %>% export_png()
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.