Skip to content

Commit

Permalink
Fix to examples for fcast and irf plot
Browse files Browse the repository at this point in the history
  • Loading branch information
Nikolas Kuschnig committed May 2, 2019
1 parent 6b2eac6 commit e1b876a
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 20 deletions.
10 changes: 5 additions & 5 deletions R/85_plot_fcast.R
Original file line number Diff line number Diff line change
Expand Up @@ -21,18 +21,18 @@
#'
#' @examples
#' \donttest{
#' data <- matrix(rnorm(200), ncol = 2)
#' data <- matrix(rnorm(400), ncol = 4)
#' x <- bvar(data, lags = 2)
#'
#' # Plot forecasts for all available variables
#' bv_plot_fcast(x)
#'
#' # Subset to variables in positions 1, 2 and 4 via position and name
#' bv_plot_fcast(x, vars = c(1, 2, 4))
#' bv_plot_fcast(x,
#' variables = c("gdp", "flux", "cpi", "capacitor"),
#' vars = c("gdp", "flux", "capacitor")
#' )
# bv_plot_fcast(x,
# variables = c("gdp", "flux", "cpi", "capacitor"),
# vars = c("gdp", "flux", "capacitor")
# )
#'
#' # Use the method to plot, adjust confidence bands and orientation
#' plot(x$fcast, conf_bands = c(0.01, 0.05), orientation = "h")
Expand Down
10 changes: 5 additions & 5 deletions R/86_plot_irf.R
Original file line number Diff line number Diff line change
Expand Up @@ -23,18 +23,18 @@
#'
#' @examples
#' \donttest{
#' data <- matrix(rnorm(200), ncol = 2)
#' data <- matrix(rnorm(400), ncol = 4)
#' x <- bvar(data, lags = 2)
#'
#' # Plot impulse responses for all available variables
#' bv_plot_irf(x)
#'
#' # Subset to impulse variables in positions 2 and 4 via position and name
#' bv_plot_irf(x, vars_impulse = c(2, 4))
#' bv_plot_irf(x,
#' variables = c("solved", "for", "many", "decades"),
#' vars_impulse = c("for", "decades")
#' )
# bv_plot_irf(x,
# variables = c("solved", "for", "many", "decades"),
# vars_impulse = c("for", "decades")
# )
#'
#' # Use the method to plot and adjust confidence bands
#' plot(x$irf, conf_bands = c(0.01, 0.05))
Expand Down
6 changes: 1 addition & 5 deletions man/plot.bvar_fcast.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 1 addition & 5 deletions man/plot.bvar_irf.Rd

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit e1b876a

Please sign in to comment.