Description Usage Arguments Details Value
Function to plot a comparison of time series from a set of model runs, with a "zoom" for recent years.
1 2 3 4 5 6 | plot2.ModelComparisonsGG.TimeSeries(dfr, plot1stObs = TRUE, numRecent = 15,
x = "y", y = "val", lci = "lci", uci = "uci", case = "case",
category = "category", facets = NULL, scales = "fixed",
plotObs = TRUE, plotMod = TRUE, ci = 0.95, pdfType = "lognormal",
xlab = "year", ylab = NULL, title = NULL, xlims = NULL,
ylims = NULL, showPlot = TRUE)
|
dfr |
- dataframe |
plot1stObs |
- flag to plot observations from first case only |
numRecent |
- number of "recent" years to plot |
x |
- column name with x axis values |
y |
- column name with y axis values |
lci |
- column name with y axis values |
uci |
- column name with y axis values |
case |
- column name with case names |
category |
- column name with category values (i.e., "observed","predicted") |
facets |
- string giving faceting formula |
scales |
- ggplot2 scales option for facet_grid |
plotObs |
- plot observations |
plotMod |
- plot case fits/predictions |
ci |
- confidence interval for error bars |
pdfType |
- assumed error distribution for confidence intervals |
xlab |
- |
ylab |
- |
title |
- |
xlims |
- |
ylims |
- |
showPlot |
- |
numRecent provides the "zoom" for a second set of faceted plots including
only the most recent years. Calls plotcaseComparisonsGG.TimeSeries
.
list with requested ggplot objects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.