plot.pacea_buoy: Plot buoy SST data for one or multiple stations

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

plot.pacea_buoyR Documentation

Plot buoy SST data for one or multiple stations

Description

Plot buoy SST data for either one station or multiple stations, with various options, with a certain year (defaults to the current year), highlighted in red.

Usage

## S3 method for class 'pacea_buoy'
plot(
  obj,
  stn_id = "C46205",
  years = NULL,
  year_highlight = lubridate::year(lubridate::today()),
  ...
)

Arguments

obj

buoy SST data, of class 'pacea_buoy_sst'

stn_id

single station to plot, as given by 'stn_id' column in 'buoy_metadata'. Default is station C46205 (West Dixon Entrance, north of Haida Gwaii)

years

vector of given years to plot. If left as NULL then plots all available years.

year_highlight

numeric of the year to highlight; defaults to current year.

...

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

Value

a ggplot object of the plot

Author(s)

Andrew Edwards

Examples

## Not run: 
plot(buoy_sst)
plot(buoy_sst, stn_id = "C46185")

## End(Not run)

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