Examples for 'plotly::schema'


Acquire (and optionally display) plotly's plot schema

Aliases: schema

Keywords:

### ** Examples

s <- schema()
Error: Package `listviewer` required for `schema`.
Please install and try again.
# retrieve acceptable `layout.mapbox.style` values
if (!is.na(Sys.getenv('MAPBOX_TOKEN', NA))) {
  styles <- s$layout$layoutAttributes$mapbox$style$values
  subplot(
    plot_mapbox() %>% layout(mapbox = list(style = styles[3])),
    plot_mapbox() %>% layout(mapbox = list(style = styles[5]))
  )
}

[Package plotly version 4.10.0 Index]