Function to plot individuals models or multiple models for comparison.

plot_models(
  sims,
  sim_id = "baseline",
  comp_remove = "none",
  time_lim = 100,
  trans = "na",
  known = NULL,
  start_date = ymd("2020-03-21"),
  x_axis = "Days since beginning of epidemic",
  plot_title = "SEIQHRF"
)

Arguments

sims

Single or list of sims to plot

sim_id

String or list of strings to name each facet

comp_remove

Compartments to remove. Suggest c(s.num, r.num)

time_lim

Number of steps (days) to plot.

trans

Y-axis transformation (e.g. log2, log10). Default = none.

known

Dataframe with known compartment numbers to plot alongside projections

start_date

Date for day 0. Default: ymd("2020-03-21"),

x_axis

Title for x-axis. Default: 'Days since beginning of epidemic'

plot_title

Title for whole plot. Default: 'SEIQHRF plot'

Value

ggplot2 object