r2d3: Render a ggplot2 graphic using d3.

Description Usage Arguments Examples

Description

Render a ggplot2 graphic using d3.

Usage

1
  r2d3(x, path)

Arguments

x

plot

path

location to save json/html

Examples

1
2
3
p <- qplot(displ, hwy, data = mpg)
r2d3(p, "mpg.json")
r2d3(p + geom_smooth(), "mpg-smooth.json")

hadley/r2d3 documentation built on May 17, 2019, 11:29 a.m.