Plots the forecasting result with forecast regions.
# S3 method for predbvhar
autoplot(
object,
type = c("grid", "wrap"),
ci_alpha = 0.7,
alpha_scale = 0.3,
x_cut = 1,
viridis = FALSE,
viridis_option = "D",
NROW = NULL,
NCOL = NULL,
...
)# S3 method for predbvhar
autolayer(object, ci_fill = "grey70", ci_alpha = 0.5, alpha_scale = 0.3, ...)
A ggplot object
A ggplot layer
A predbvhar object
Divide variables using ggplot2::facet_grid() ("grid": default) or ggplot2::facet_wrap() ("wrap")
Transparency of CI
Scale of transparency parameter (alpha) between the two layers. alpha of CI ribbon = alpha_scale * alpha of path (By default, .5)
plot x axes from x_cut for visibility
If TRUE, scale CI and forecast line using ggplot2::scale_fill_viridis_d() and ggplot2::scale_colour_viridis_d, respectively.
Option for viridis string. See option of ggplot2::scale_colour_viridis_d. Choose one of c("A", "B", "C", "D", "E"). By default, D.
nrow of ggplot2::facet_wrap()
ncol of ggplot2::facet_wrap()
additional option for ggplot2::geom_path()
color of CI