Description Usage Arguments Examples
The schema contains valid attributes names, their value type, default values (if any), and min/max values (if applicable).
1 | schema(jsonedit = interactive(), ...)
|
jsonedit |
use |
... |
other options passed onto |
1 2 3 4 5 6 7 8 9 10 | s <- schema()
# 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]))
)
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.