plot_ts_uncertainty: Plot a timeseries with uncertainty

Description Usage Arguments

Description

Plot a timeseries with uncertainty represented as a grey polygon with the option of adding a second series to the plot

Usage

1
2
3
4
plot_ts_uncertainty(d, xs = NULL, d2 = NULL, probs = c(lwr = 0.025, mid =
  0.5, upr = 0.975), xlab = "", ylab = "", main = "", save = FALSE,
  file_name = NULL, file_type = "png", path = NULL,
  graph_pars = list(mfrow = c(1, 1), mar = c(4, 4, 1, 1), las = 2))

Arguments

d

dataframe with columns representing each of the ys (could rename d to be the main series?)

xs

vector of xs corresponding with the columns of d (if NULL, names of d are used)

d2

a dataframe with the same number of columns as d used to add a second series as a line plot (same xs are used)

probs

quantile probabilities for plotting

xlab

x-axis label

ylab

y-axis label

main

main label

save

logical to specify whether the plot should be saved (if TRUE a file_name must be supplied) if TRUE calls save_plot

file_name

valid file name list to store model results passed to save_plot

file_type

default = png, passed to save_plot

graph_pars

graphical parameters passed to par


AustralianAntarcticDivision/fishnostics documentation built on May 5, 2019, 9:21 a.m.