plotBBox: plot result of 'rxtracto_3D'

View source: R/plotBBox.R

plotBBoxR Documentation

plot result of 'rxtracto_3D'

Description

plotBBox is a function to plot the results from 'rxtracto_3D'()' and 'rxtractogon()'

Usage

plotBBox(
  resp,
  plotColor = "viridis",
  time = NA,
  myFunc = NA,
  mapData = NULL,
  crs = NULL,
  animate = FALSE,
  cumulative = FALSE,
  name = NA,
  maxpixels = 10000
)

Arguments

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

Value

a 'plotdap' plot

Examples

## 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))

rmendels/rerddapXtracto documentation built on Jan. 19, 2024, 6:28 p.m.