powered by
The plot function generates a plot of actuals and predicted values for a "garma_model" object.
# S3 method for garma_model plot(x, ...)
An R "plot" object.
(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.
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