| chart_pack | R Documentation |
Produces the chart set a forecast round is discussed from: the forecast fans, the filtered latent states, the historical shock decomposition of inflation, and the model's monetary transmission. Output is a multi-page PDF by default, or numbered PNGs.
chart_pack(
round,
file = NULL,
charts = NULL,
vars = NULL,
width = 9,
height = 6.5
)
round |
A |
file |
Output file. A |
charts |
Which charts to include, from |
vars |
Variables for the forecast page. Default: the model's
headline set, whichever of |
width, height |
Page size in inches. |
The output path (invisibly), or NULL when drawing to the
current device.
m <- qpm_template("bkl")
obs <- simulate(qpm_solve(m), nsim = 40, seed = 1, burn = 20)
obs$period <- next_quarters("2016-Q1", 40)
r <- qpm_round("demo", m, obs[, c("period", "pi", "i", "q")], horizon = 8)
pdf_path <- file.path(tempdir(), "pack.pdf")
chart_pack(r, pdf_path)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.