plot_residuals: Plot residuals

Description Usage Arguments Author(s) See Also

View source: R/report_auxiliary.R

Description

Plots figure of residuals (or any time series with predicted mean of zero).

Usage

1
2
3
plot_residuals(Year, res, res_sd = NULL, res_sd_CI = 0.95,
  res_upper = NULL, res_lower = NULL, res_ind_blue = NULL,
  draw_zero = TRUE, zero_linetype = 2, label = "Residual")

Arguments

Year

A vector of years for the data.

res

A vector of residuals.

res_sd

A vector of year specific standard deviation for res.

res_sd_CI

The confidence interval for the error bars based for res_sd.

res_upper

A vector of year-specific upper bounds for the error bars of the residual (in lieu of argument res_CV).

res_lower

A vector of year-specific lower bounds for the error bars of the residual (in lieu of argument res_CV).

res_ind_blue

Indices of obs for which the plotted residuals and error bars will be blue.

draw_zero

Indicates whether a horizontal line should be drawn at zero.

zero_linetype

Passes argument lty (e.g. solid line = 1, dotted = 2) to draw_zero.

label

Character string that describes the data to label the y-axis.

Author(s)

Q. Huynh

See Also

plot_timeseries


MSEtool documentation built on Oct. 17, 2018, 9:04 a.m.