View source: R/plot-pacea-buoy.R
plot.pacea_buoy | R Documentation |
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.
## S3 method for class 'pacea_buoy'
plot(
obj,
stn_id = "C46205",
years = NULL,
year_highlight = lubridate::year(lubridate::today()),
...
)
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. |
a ggplot object of the plot
Andrew Edwards
## Not run:
plot(buoy_sst)
plot(buoy_sst, stn_id = "C46185")
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.