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