plot.pacea_stanom: Plot anomaly of BCCM spatiotemporal data layer

View source: R/plot-pacea-anom.R

plot.pacea_stanomR Documentation

Plot anomaly of BCCM spatiotemporal data layer

Description

Plot for BCCM ROMS anomaly objects using 'ggplot()'. A quick visualization of anomaly data (relative to climatology), specifying month(s) and year(s). For more options and configurable plots see vignette.

Usage

## S3 method for class 'pacea_stanom'
plot(x, months.plot, years.plot, clim.dat, bc = TRUE, eez = TRUE, ...)

Arguments

x

a BCCM ROMS 'pacea_stanom' object; output from using 'calc_anom()'

months.plot

months to plot. Defaults to current month (if available)

years.plot

years to plot.

clim.dat

climatology data, obtained from using 'calc_clim()'. If used, contours of deviations from climatology will be plotted

bc

logical. Should BC coastline layer be plotted? Can only be plotted with one plot layer.

eez

logical. Should BC EEZ layer be plotted? Can only be plotted with one plot layer.

...

other arguments to be passed on, but not currently used ('?ggplot' says the same thing); this should remove a R-CMD-check warning.

Value

plot of the spatial data to the current device (returns nothing)

Examples

## Not run: 
pdata <- bccm_surface_temperature()
anom_data <- calc_anom(pdata)
plot(anom_data)

## End(Not run)

pbs-assess/PACea documentation built on April 17, 2025, 11:36 p.m.