Creates a visualization of GARCH(1,1) forecasts with historical data, point forecasts, and prediction intervals.

# S3 method for class 'garch11forecast'
plot(x, main = "GARCH(1,1) Forecasts", xlab = "Time", ylab = "Value", ...)

Arguments

x

An object of class "garch11forecast" from garch11f

main

Plot title (default: "GARCH(1,1) Forecasts")

xlab

X-axis label (default: "Time")

ylab

Y-axis label (default: "Value")

...

Additional arguments passed to base plot function

Value

A ggplot object (if ggplot2 is available) or base R plot

See also

Examples

# \donttest{
# After creating forecasts with garch11f()
forecasts <- garch11f(rnorm(100), h = 10)
#> Error in garch11f(rnorm(100), h = 10): could not find function "garch11f"
plot(forecasts)
#> Error: object 'forecasts' not found
plot(forecasts, main = "Custom Title", ylab = "Returns")
#> Error: object 'forecasts' not found
# }