export_png: Export a PNG or SVG from a ggvis object

View source: R/export.R

export_pngR Documentation

Export a PNG or SVG from a ggvis object

Description

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

Usage

export_png(vis, file = NULL)

export_svg(vis, file = NULL)

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

## Not run: 
mtcars %>% ggvis(x = ~wt) %>% export_png()

## End(Not run)

ggvis documentation built on May 29, 2024, 1:12 a.m.