plotSSresults: Plots the trend series and the (fitted) second observation...

View source: R/plots.R

plotSSresultsR Documentation

Plots the trend series and the (fitted) second observation equation and gives diagnostic plots based on standardized residuals.

Description

Plots the trend series and the (fitted) second observation equation and gives diagnostic plots based on standardized residuals.

Usage

plotSSresults(
  tsl,
  legend,
  title,
  boundName,
  res = NULL,
  namesPrint,
  bounds,
  combine,
  path,
  device,
  width,
  height
)

Arguments

tsl

A list with two multiple time series objects for the first and second plor, respectively.

legend

A list with two character vectors. The first contains the legend names for the first plot and so on.

title

A list with the titles for the first three plots.

boundName

The legend name of the confidence bounds.

res

The residual series as time series. If res = NULL, all graphs realted to the residual series will not be plotted.

namesPrint

A character vector containing two names for the first two plots. The remaining names are creates automatically if combine = FALSE.

bounds

A logical indicating whether significance intervals should be plotted around the nawru. The default is bounds = TRUE.

combine

A logical indicating whether the diagnostic plots should be combined or not, the default is TRUE.

path

An optional file path. If specified, the plots will be saved using the format in device under the given path.

device

Device passed on to ggplot for plot saving. Options are "eps", "ps", "tex" (pictex), "pdf", "jpeg", "tiff", "png", "bmp", "svg" or "wmf".

width

The plot width in case of printing.

height

The plot height in case of printing.


RGAP documentation built on Nov. 2, 2023, 6:02 p.m.