View source: R/plotMDFR.Fits.TimeSeries.R
plotMDFR.Fits.TimeSeries | R Documentation |
Function to plot a comparison of fits to time series from a set of model runs, with a "zoom" for recent years.
plotMDFR.Fits.TimeSeries(
dfr,
plot1stObs = TRUE,
numRecent = 15,
x = "y",
y = "val",
lci = "lci",
uci = "uci",
case = "case",
type = "type",
facets = NULL,
scales = "fixed",
position = ggplot2::position_dodge(0.2),
plotObs = TRUE,
plotMod = TRUE,
xlab = "year",
ylab = NULL,
title = NULL,
xlims = NULL,
ylims = NULL,
colour_scale = ggplot2::scale_colour_hue(),
fill_scale = ggplot2::scale_fill_hue(),
showPlot = FALSE,
verbose = FALSE
)
dfr |
|
plot1stObs |
|
numRecent |
|
x |
|
y |
|
lci |
|
uci |
|
case |
|
type |
|
facets |
|
scales |
|
position |
|
plotObs |
|
plotMod |
|
xlab |
|
ylab |
|
title |
|
xlims |
|
ylims |
|
colour_scale |
|
fill_scale |
|
showPlot |
|
verbose |
|
Uses plotMDFR.Fits.TimeSeries1()
to make the plots. numRecent
provides the "zoom"
for a second set of faceted plots including only the most recent years. If numRecent
is 0,
this plot is not created and an NA is substituted.
Note that facets
should be given as an expression, not as a character string, if you want multilevel faceting.
list with requested ggplot objects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.