plot method for simulations

# S3 method for pansim
plot(
  x,
  drop_states = c("t", "S", "R", "E", "I", "X", "incidence"),
  keep_states = NULL,
  condense = FALSE,
  facet_by_age = FALSE,
  log = FALSE,
  log_lwr = 1,
  show_times = TRUE,
  ...
)

Arguments

x

fitted pansim object

drop_states

states to exclude from plot

keep_states

states to include in plot (overrides drop_states)

condense

condense states (e.g. all ICU states -> "ICU") before plotting? See condense.pansim

facet_by_age

if this is an age-structured simulation, do we want to facet by age? if FALSE, facet by state (default)

log

plot y-axis on log scale?

log_lwr

lower bound for log scale

show_times

indicate times when parameters changed?

...

additional arguments to condense.pansim

Value

a ggplot object