This function plots the computed sensitivity effects over the forecast horizon.

plot_dynrmf_sensitivity(
  sensitivity_results,
  title = "First-Order Sensitivity Effect",
  y_label = "Effect (ΔY / ΔX)",
  x_label = "Forecast Horizon"
)

Arguments

sensitivity_results

Output list from dynrmf_sensi.

title

Character. Plot title.

y_label

Character. Label for y-axis.

x_label

Character. Label for x-axis (default "Forecast Horizon").

Value

ggplot2 object displaying the sensitivity effects.

Examples

if (FALSE) { # \dontrun{
plot1 <- plot_dynrmf_sensitivity(res, 
                          title = "Sensitivity of Consumption to Income",
                          y_label = "Effect (ΔConsumption / ΔIncome)")
print(plot1)
} # }