plotBBox | R Documentation |
plotBBox
is a function to plot the results from
'rxtracto_3D'()' and 'rxtractogon()'
plotBBox(
resp,
plotColor = "viridis",
time = NA,
myFunc = NA,
mapData = NULL,
crs = NULL,
animate = FALSE,
cumulative = FALSE,
name = NA,
maxpixels = 10000
)
resp |
data frame returned from 'rxtracto_3D'()' or 'rxtractogon()' |
plotColor |
the color to use in plot from 'cmocean' |
time |
a function to map multi-time to one, or else identity for animation |
myFunc |
function of one argument to transform the data |
mapData |
map data from 'maps' or 'mapdata', must be of class 'map' |
crs |
valid crs string |
animate |
if multiple times, if TRUE will animate the maps |
cumulative |
makes cumulative animation of data |
name |
name for colorbar label |
maxpixels |
maximum number of pixels to use in making the map - controls resolution |
a 'plotdap' plot
## example code to download data for plotBBox
## dataInfo <- rerddap::info('erdMBsstd1day')
## parameter <- 'sst'
## xcoord <- c(230, 230.1)
## ycoord <- c(33, 33.1)
## tcoord <- c('2006-01-15', '2006-01-15')
## zcoord <- c(0., 0.)
## MBsst <- rxtracto_3D(dataInfo, parameter, xcoord = xcoord, ycoord = ycoord,
## tcoord = tcoord, zcoord = zcoord)
##
## low resolution selected to keep time to render down
# suppressWarnings(p <- plotBBox(MBsst, maxpixels = 50))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.