powered by
This requires that the external program vg2png is installed. This is part of the vega node.js module.
vg2png
vega
export_png(vis, file = NULL)export_svg(vis, file = NULL)
export_svg(vis, file = NULL)
A ggvis object.
Output file name. If NULL, defaults to "plot.svg" or "plot.png".
https://github.com/trifacta/vega for information on installing vg2png and vg2svg.
vg2svg
if (FALSE) { mtcars %>% ggvis(x = ~wt) %>% export_png() }
Run the code above in your browser using DataLab