plot.pacea_oi: Plot OISST data

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

plot.pacea_oiR Documentation

Plot OISST data

Description

Plot for NOAA OISST sf objects using 'ggplot()'. A quick visualization of data, specifying month(s) and year(s). For more options and configurable plots see vignette.

Usage

## S3 method for class 'pacea_oi'
plot(x, weeks.plot, months.plot, years.plot, bc = TRUE, eez = TRUE, ...)

Arguments

x

a OISST 'pacea_oi' object, which is an 'sf' object.

weeks.plot

numeric vector to indicate which weeks to plot. Defaults to current week (or most recent) available.

months.plot

character or numeric vector to indicate which months to plot (e.g. 'c(1, 2)', 'c("April", "may")', 'c(1, "April")'). Defaults to current month (or most recent) available.

years.plot

numeric vector to indicate which years to plot. Defaults to current year (or most recent) available.

bc

logical. Should BC coastline layer be plotted?

eez

logical. Should BC EEZ layer be plotted?

...

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 <- oisst_7day
plot(pdata)

## End(Not run)

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