Learn R Programming

garma (version 0.9.6)

plot.garma_model: Plot Forecasts from model.

Description

The plot function generates a plot of actuals and predicted values for a "garma_model" object.

Usage

# S3 method for garma_model
plot(x, ...)

Arguments

x

(garma_model) The garma_model from which to plot the values.

...

other arguments to be passed to the "plot" function, including h (int) - the number of periods ahead to forecast.

Value

An R "plot" object.

Examples

Run this code
# NOT RUN {
data(AirPassengers)
ap  <- as.numeric(diff(AirPassengers,12))
mdl <- garma(ap,order=c(9,1,0),k=0,method='CSS',include.mean=FALSE)
plot(mdl)
# }

Run the code above in your browser using DataLab