Learn R Programming

GAS (version 0.3.4.1)

plot-methods: Plot output from an object of the from the GAS package.

Description

This method provides plot functionalities for the uGASFit, mGASFit, uGASSim, mGASSim, uGASFor, mGASFor, uGASRoll and mGASRoll objects defined in the GAS package.

Usage

plot(x, y, ...)

  PlotMenu(x)

Value

Displays a plot of an object of class uGASFit, mGASFit, uGASSim,

mGASSim, uGASFor, mGASFor, uGASRoll, mGASRoll.

Arguments

x, y

objects of class uGASFit, mGASFit, uGASSim, mGASSim, uGASFor, mGASFor, uGASRoll, mGASRoll.

...

additional arguments, see Details

Author

Leopoldo Catania

Details

plot accepts the additional argument numeric argument which. By default which = NULL. If which is provided, plot() does not show the interactive menu and plot the corresponding option. The available options for each object class is printed by the function PlotMenu(x). By default which = NULL, that is, plot() display an interactive menu.

Examples

Run this code
if (FALSE) {
## Plot filtered estimates of a GAS model estimated on the
## Quarterly logarithmic change in percentage points of the Consumer Price Index data set (cpichg)
library("GAS")

data("cpichg")

GASSpec = UniGASSpec(Dist = "std", ScalingType = "Identity",
                     GASPar = list(location = TRUE, scale = TRUE,
                                   shape = FALSE))

Fit = UniGASFit(GASSpec, cpichg)

plot(Fit, which = 1)
}

Run the code above in your browser using DataLab