Skip to contents

Computes `scenario - baseline` differences at each time and shows uncertainty ribbons by scenario. Optionally plots cumulative differences.

Usage

chlaa_plot_difference_vs_baseline(
  scenario_runs,
  baseline = "baseline",
  var = "inc_symptoms",
  cumulative = FALSE,
  probs = c(0.1, 0.9)
)

Arguments

scenario_runs

Output from `chlaa_run_scenarios()` or `chlaa_run_scenarios_from_snapshot()`.

baseline

Baseline scenario name.

var

Variable to compare (default `inc_symptoms`).

cumulative

If TRUE, show cumulative differences over time.

probs

Two-element interval for ribbon bounds.

Value

A ggplot object.