Description Usage Arguments Value Examples
Plots a VAR
1 |
x |
an IRF-result as returned from |
single_plot |
if all facets should be plotted in a single graph, if FALSE, a list of plots for each from-variable is returned |
plot |
if FALSE only the plotting data is returned instead of actual plots |
a data_frame if plot == FALSE
,
a single ggplot if plot == TRUE, single_plot == TRUE
or
a list of ggplots if plot == TRUE, single_plot == FALSE
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 | library(vars)
data(Canada)
varres <- VAR(Canada, p = 2, type = "none")
# plot the VAR result
ggfy(varres)
# to extract the data only
ggfy(varres, plot = FALSE)
# to get a list of plots
plot_list <- ggfy(varres, single_plot = FALSE)
# IRF
irfres <- irf(varres)
ggfy(irfres)
# to extract the data only
ggfy(irfres, plot = FALSE)
# to get a list of plots
plot_list <- ggfy(irfres, single_plot = FALSE)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.