Plots posterior summaries or draw-level response paths
Source:R/autoplot.R
autoplot.bsvar_post_tbl.RdPlots posterior medians and credible intervals from summary tables, or individual paths from supported draw-level response tables. Panels are determined by variables, structural shocks, and model specifications.
Usage
# S3 method for class 'bsvar_post_tbl'
autoplot(
object,
variables = NULL,
shocks = NULL,
models = NULL,
facet_scales = "free_y",
...
)Examples
data(us_fiscal_lsuw, package = "bsvars")
spec <- bsvars::specify_bsvar$new(us_fiscal_lsuw, p = 1)
#> The identification is set to the default option of lower-triangular structural matrix.
post <- bsvars::estimate(spec, S = 5, show_progress = FALSE)
irf_tbl <- tidy_irf(post, horizon = 3)
p <- ggplot2::autoplot(irf_tbl)