show_spec: Print out the vega plot specification

View source: R/ggvis.R

show_specR Documentation

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

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

rstudio/ggvis documentation built on Feb. 5, 2024, 9:13 p.m.