plot.gap {RGAP}R Documentation

Plots for a gap object

Description

Plots potential output growth and the output gap based on an objects of class gap.

Usage

## S3 method for class 'gap'
plot(
  x,
  contribution = FALSE,
  path = NULL,
  combine = TRUE,
  prefix = NULL,
  device = "png",
  width = 10,
  height = 3,
  ...
)

Arguments

x

An object of class gap.

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).

path

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

combine

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

prefix

An optional character string to be added to the names of the plots in case path is specified.

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.

...

Ignored.

Value

No return value, plots are printed.


[Package RGAP version 0.1.1 Index]