View source: R/fPlotMultiyearGPPsat.R
This function will create a time series plot of GPPsat from days 1-365, wtih each year (and SOS/EOS) overlaid.
1 2 3 4 5 6 7 8 9 10 11 | fPlotMultiyearGPPsat(
GPP,
GPP.pred,
GPP.POSIX,
GPP.ProcYr,
crit.ID,
crit.POSIX,
crit.ProcYr,
crit.GPP,
span
)
|
GPP |
numeric, requires a vector of daily GPP for a given process_year |
GPP.pred |
numeric, requires a vector of PREDICTED daily GPP for a given process_year |
GPP.POSIX |
date, requires a vector of POSIX dates (YYYY-MM-DD) for each process_year |
GPP.ProcYr |
numeric, requires a vector of process_years (used to facet our data by individual years) |
crit.ID |
character, requires a vector of critical threshold labels (e.g. SOS10, SOS25) (vector must be of equal length as the number of individual critical dates) |
crit.POSIX |
date, requires a vector of POSIX dates (YYYY-MM-DD) for each critical threshold |
crit.ProcYr |
numeric, requires a vector of process_years (used to identify which subset of data the critical thresholds were estimated from) |
crit.GPP |
numeric, requires a vector of GPPsat estimates for each critical threshold date |
span |
numeric, set the span for time series smoothing (defaults to 0.075) (vector must be of equal length as the number of individual critical dates) |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.