vega_version | R Documentation |
Use these functions to get which versions of Vega JavaScript libraries
are available. vega_version_all()
returns a data frame showing all
versions included in this package, vega_version_available()
returns
all versions available - subject to locking,
vega_version()
shows the default version.
vega_version(major = FALSE)
vega_version_all(major = FALSE)
vega_version_available(major = FALSE)
major |
|
This package offers multiple widgets, each corresponding to a major version
of Vega-Lite. Only one of these widgets can be used for a given loading of
this package. When vegawidget()
is first called, the widget is "locked"
according to the $schema
in the vegaspec
used, or the default - the
most-recent version.
is_locked
indicates if vegawidget()
is has locked the version.
widget
indicates which version of the widget would be used.
list
with elements: is_locked
, widget
,
vega_lite
, vega
, vega_embed
.
data.frame
with elements: widget
,
vega_lite
, vega
, vega_embed
.
data.frame
with elements: widget
,
vega_lite
, vega
, vega_embed
.
vega_version()
vega_version(major = TRUE)
vega_version_all()
vega_version_available()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.