powered by
bbox_setchanges the bounding box in an plotdap object. Particularly needed if using gganimate::animate()
bbox_set
bbox_set( plotobj, landmask = TRUE, xlim = NULL, ylim = NULL, interactive = FALSE )
a ggplot object with reset limits. If interactive is true, then returns a ggplot object that will work with the `plotly` package.
valid plotdap object
optional: if true land is plotted over the data
optional: new x-values of the bounding box otherwise taken from the plotdap object
optional: new y-values of the bounding box otherwise taken from the plotdap object
optional: if true creates an interactive version of the graphic
p <- plotdap() p <- add_tabledap(p, sardines, ~subsample_count) xlim = c(-125, -115) ylim <- c(30., 50.) p <- bbox_set(p, xlim = xlim, ylim = ylim)
Run the code above in your browser using DataLab