| plot_var | R Documentation |
Plots the returns with -VaR and -ES from var_es and marks the exceedances, the
returns below -VaR.
plot_var(x, level = NULL, dates = NULL)
x |
A |
level |
The level to plot. The default is the largest level in |
dates |
Optional vector of dates with one element for each observed return, used for the x-axis. |
ggplot object.
var_es, backtest_var
opt <- estimate_parameters(spy$log_return, model = "skew_t_leverage", silent = TRUE)
plot_var(var_es(opt, level = 0.99), dates = spy$date)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.