Note: We are still improving this website. If you find a mistake or have a question, please get in contact

plot_decomposition!

Plot a decomposition plot into an already existing axis.

plot_decomposition!(
    ax::Axis,
    idx_outcome::Int,
    irfs::AbstractArray{<:Number,3},
    teffects::Vector{<:AbstractArray{<:Number,3}};
    colors=wong_colors()
) -> Axis

Plots a decomposition plot of the total effects (irfs) and the transmission effects (teffects) for a given outcome variable (idx_outcome) into the axis ax.

Arguments

  • idx_outcome::Int: Index of the outcome variable.
  • irfs::AbstractArray{<:Number,3}: Total effects, with shape [N, 1, H] where N is the number of endogenous variables, and H is the number of horizons (including zero).
  • teffects::Vector{<:AbstractArray{<:Number,3}}: Transmission effects for each transmission channel, same shape as irfs.

Keyword Arguments

  • colors: Colors for the decomposition bars (default: Wong colors).