plotMDFR.Fits.TimeSeries1: Plot comparisons of fits to time series from a set of model...

View source: R/plotMDFR.Fits.TimeSeries1.R

plotMDFR.Fits.TimeSeries1R Documentation

Plot comparisons of fits to time series from a set of model runs

Description

Function to plot a comparison of fits to time series from a set of model runs.

Usage

plotMDFR.Fits.TimeSeries1(
  dfr,
  plot1stObs = TRUE,
  x = "y",
  y = "val",
  lci = "lci",
  uci = "uci",
  case = "case",
  type = "type",
  facets = NULL,
  position = position_dodge(0.2),
  scales = "fixed",
  plotObs = TRUE,
  plotMod = TRUE,
  xlab = "year",
  ylab = NULL,
  title = NULL,
  xlims = NULL,
  ylims = NULL,
  colour_scale = ggplot2::scale_color_hue(),
  fill_scale = ggplot2::scale_fill_hue(),
  showPlot = FALSE,
  verbose = FALSE
)

Arguments

dfr
  • dataframe

plot1stObs
  • flag to plot observations from first case only

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

type
  • column name with type values (i.e., "observed","predicted")

facets
  • grid faceting formula (as an expresssion for multilevel faceting)

position
  • indicates ggplot2 position_ to use ('dodge','jitter','identity',)

scales
  • ggplot2 scales option for facet_grid

plotObs
  • plot observations

plotMod
  • plot case fits/predictions

xlab
ylab
title
xlims
ylims
colour_scale
  • ggplot2 scale_colour object (default is ggplot2::scale_colour_hue())

fill_scale
  • ggplot2 scale_fill object (default is ggplot2::scale_fill_hue())

showPlot
  • flag (T/F) to print plot

verbose
  • flag (T/F) to print debugging info

ci
  • confidence interval for error bars

pdfType
  • assumed error distribution for confidence intervals

Details

facets should be given as an expression, not as a character string, if you want multilevel faceting.

Value

ggplot object


wStockhausen/rCompTCMs documentation built on Sept. 12, 2023, 3:13 p.m.