plot.pacea_st: Plot a pacea spatiotemporal data layer

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

plot.pacea_stR Documentation

Plot a pacea spatiotemporal data layer

Description

Plot for 'pacea_st' classes of objects using 'ggplot()'. Objects can be BCCM outputs, OISST values (TODO no, but should work for the grid26 mapped values), or HOTSSEA outputs. Gives 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_st'
plot(
  x,
  months.plot = c("April"),
  years.plot = c(2018),
  bc = TRUE,
  eez = TRUE,
  ...
)

Arguments

x

a 'pacea_st' object, which is an 'sf' object

months.plot

character or numeric vector to indicate which months to include (e.g. 'c(1, 2)', 'c("April", "may")', 'c(1, "April")')

years.plot

vector of years to include, from 1993 to 2019

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

## End(Not run)

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