bbox_set: change bounding box in plotdap object

Description Usage Arguments Value Examples

View source: R/bbox_set.R

Description

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

Usage

1
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

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

plotdap documentation built on Oct. 29, 2020, 1:07 a.m.