| vega_schema | R Documentation | 
Useful if you are creating a vegaspec manually.
vega_schema(
  library = c("vega_lite", "vega"),
  version = NULL,
  major = is.null(version)
)
library | 
 
  | 
version | 
 
  | 
major | 
 
  | 
character URL for schema
  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()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.