Plots the forecasting result with forecast regions.
Usage
# S3 method for class '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 class 'predbvhar'
autolayer(object, ci_fill = "grey70", ci_alpha = 0.5, alpha_scale = 0.3, ...)Arguments
- object
A
predbvharobject- type
Divide variables using
ggplot2::facet_grid()("grid": default) orggplot2::facet_wrap()("wrap")- ci_alpha
Transparency of CI
- alpha_scale
Scale of transparency parameter (
alpha) between the two layers.alphaof CI ribbon =alpha_scale*alphaof path (By default, .5)- x_cut
plot x axes from
x_cutfor visibility- viridis
If
TRUE, scale CI and forecast line usingggplot2::scale_fill_viridis_d()and ggplot2::scale_colour_viridis_d, respectively.- viridis_option
Option for viridis string. See
optionof ggplot2::scale_colour_viridis_d. Choose one ofc("A", "B", "C", "D", "E"). By default,D.- NROW
nrowofggplot2::facet_wrap()- NCOL
ncolofggplot2::facet_wrap()- ...
additional option for
ggplot2::geom_path()- ci_fill
color of CI
