vega_schema {vegawidget} | R Documentation |
Create string for schema-URL
Description
Useful if you are creating a vegaspec manually.
Usage
vega_schema(
library = c("vega_lite", "vega"),
version = NULL,
major = is.null(version)
)
Arguments
library |
|
version |
|
major |
|
Value
character
URL for schema
Examples
vega_schema()
vega_schema("vega", major = FALSE)
vega_schema("vega_lite", version = "5.2.0")
# creating a spec by hand
spec <-
list(
`$schema` = vega_schema(),
width = 300,
height = 300
# and so on
) %>%
as_vegaspec()
[Package vegawidget version 0.5.0 Index]