plot.TFPfit {RGAP}R Documentation

Plots for a TFPfit object

Description

Plots the TFP trend and the CUBS equation and gives diagnostic plots based on standardized residuals for objects of class TFPfit.

Usage

## S3 method for class 'TFPfit'
plot(
  x,
  alpha = 0.05,
  bounds = TRUE,
  path = NULL,
  combine = TRUE,
  prefix = NULL,
  posterior = FALSE,
  device = "png",
  width = 10,
  height = 3,
  ...
)

Arguments

x

An object of class TFPfit.

alpha

The significance level for the TFP trend (alpha in [0,1]). Only used if bounds = TRUE.

bounds

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

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

posterior

A logical indicating whether posterior diagnostics should be plotted. The default is FALSE. Only applied in the case of bayesian estimation.

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]