View source: R/plot-pacea-anom.R
plot.pacea_stanom | R Documentation |
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.
## S3 method for class 'pacea_stanom'
plot(x, months.plot, years.plot, clim.dat, bc = TRUE, eez = TRUE, ...)
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. |
plot of the spatial data to the current device (returns nothing)
## Not run:
pdata <- bccm_surface_temperature()
anom_data <- calc_anom(pdata)
plot(anom_data)
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.