plot2.ModelComparisonsGG.TimeSeries: Plot comparisons of time series from a set of model runs,...

Description Usage Arguments Details Value

Description

Function to plot a comparison of time series from a set of model runs, with a "zoom" for recent years.

Usage

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)

Arguments

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

-

Details

numRecent provides the "zoom" for a second set of faceted plots including only the most recent years. Calls plotcaseComparisonsGG.TimeSeries.

Value

list with requested ggplot objects


wStockhausen/rTCSAM2013 documentation built on May 3, 2019, 7:13 p.m.