show_spec: Print out the vega plot specification

Description Usage Arguments Examples

View source: R/ggvis.R

Description

Print out the vega plot specification

Usage

1
show_spec(vis, pieces = NULL)

Arguments

vis

Visualisation to print

pieces

Optional, a character or numeric vector used to pull out selected pieces of the spec

Examples

1
2
3
base <- mtcars %>% ggvis(~mpg, ~wt) %>% layer_points()
base %>% show_spec()
base %>% show_spec("scales")

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