Learn R Programming

uGMAR (version 3.0.1)

plot.gsmarpred: plot method for class 'gsmarpred' objects

Description

plot.gsmarpred is plot method for gsmarpred objects

Usage

# S3 method for gsmarpred
plot(x, ..., nt, add_grid = TRUE)

Arguments

x

object of class 'gsmarpred' generated by predict.gsmar().

...

arguments passed to grid()

nt

a positive integer specifying the number of observations to be plotted along with the prediction. Default is round(length(data)*0.2).

add_grid

should grid be added to the plots?

Details

This method is used plot forecasts of gsmar processes

Examples

Run this code
# NOT RUN {
 
# }
# NOT RUN {
 # GMAR-model
 params12 <- c(1.12321, 0.90557, 0.29288, 4.53131,
               0.70309, 3.21154, 0.83888)
 gmar12 <- GSMAR(VIX, 1, 2, params12)
 pred <- predict(gmar12, n_ahead=10, plotRes=FALSE)
 plot(pred, nt=50)
 
# }

Run the code above in your browser using DataLab