Learn R Programming

ggvis (version 0.3.0.1)

export_png: Export a PNG or SVG from a ggvis object

Description

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

Usage

export_png(x, envir = parent.frame(), file = NULL)

export_svg(x, envir = parent.frame(), file = NULL)

Arguments

x
A ggvis object.
envir
The environment in which to evaluate gv.
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