bbox_set: change bounding box in plotdap object

View source: R/bbox_set.R

bbox_setR Documentation

change bounding box in plotdap object

Description

bbox_setchanges the bounding box in an plotdap object. Particularly needed if using gganimate::animate()

Usage

bbox_set(plotobj, xlim, ylim)

Arguments

plotobj

valid plotdap object

xlim

new x-values of the bounding box

ylim

new y-values of the bounding box

Value

a plotdap object

Examples

p <- plotdap()
p <- add_tabledap(p, sardines, ~subsample_count)
xlim = c(-125, -115)
ylim <- c(30., 50.)
p <- bbox_set(p, xlim, ylim)

ropensci/plotdap documentation built on Oct. 23, 2023, 6:29 p.m.