bbox_set | R Documentation |
bbox_set
changes the bounding box in an plotdap object.
Particularly needed if using gganimate::animate()
bbox_set(plotobj, xlim, ylim)
plotobj |
valid plotdap object |
xlim |
new x-values of the bounding box |
ylim |
new y-values of the bounding box |
a plotdap object
p <- plotdap() p <- add_tabledap(p, sardines, ~subsample_count) xlim = c(-125, -115) ylim <- c(30., 50.) p <- bbox_set(p, xlim, ylim)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.