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

View source: R/plots.R

plotGapR 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

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

Arguments

tsl

A list with two multiple time series objects for the first and second plot, 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.

contribution

A boolean indicating whether the contributions to potential output growth and the output gap should be plotted (only applicable for production function type output gaps).

res

The residual series as time series. If res = NULL, all graphs related 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.