export_png: Export a PNG or SVG from a ggvis object

Description Usage Arguments See Also Examples

View source: R/export.R

Description

This requires that the external program vg2png is installed. This is part of the vega node.js module.

Usage

1
2
3

Arguments

vis

A ggvis object.

file

Output file name. If NULL, defaults to "plot.svg" or "plot.png".

See Also

https://github.com/trifacta/vega for information on installing vg2png and vg2svg.

Examples

1
2
3
4
## Not run: 
mtcars %>% ggvis(x = ~wt) %>% export_png()

## End(Not run)

rpruim/ggvis2 documentation built on May 28, 2019, 2:34 a.m.