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