vegadown: Access vegaspecs

Description Usage Arguments Value Examples

View source: R/vegadown.R

Description

Any vegaspecs rendered in knitr chunks using vegajson or vegayaml (vegayml) will be stored to a package environment, where they can be accessed using the vegadown() function, using the label of a code chunk.

To get all the available labels, use vegadown_labels().

Usage

1
2
3

Arguments

label

character label of the code chunk to access

Value

vegadown()

list() with S3 class vegaspec.

vegadown_labels()

character vector, all available labels.

Examples

1
2
3
4
5
6
7
vegadown_labels()

# not run because it depends on side effects
## Not run: 
  vegadown("json-cars")

## End(Not run)

vegawidget/vegadown documentation built on Jan. 23, 2021, 10:34 a.m.