Learn R Programming

stochvolTMB (version 0.3.0)

plot_forecast: Add predicted volatility.

Description

Adds predicted volatility to the volatility plot.

Usage

plot_forecast(p, forecast, include_ci = TRUE)

Arguments

p

ggplot object

forecast

data.table

include_ci

logical value indicating if volatility should be plotted with approximately 95% confidence interval.#' @return ggplot object