ggvis (version 0.4.3)

show_spec: Print out the vega plot specification

Description

Print out the vega plot specification

Usage

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

Run this code
# NOT RUN {
base <- mtcars %>% ggvis(~mpg, ~wt) %>% layer_points()
base %>% show_spec()
base %>% show_spec("scales")
# }

Run the code above in your browser using DataCamp Workspace