Plot Rt distribution over time for various scenarios

spim_plot_rt_dist(
  npi_key,
  xlim,
  ylim,
  cols,
  labels = NULL,
  legend_ncol = 1,
  npi_key2 = NULL,
  multiplier = 1
)

Arguments

npi_key

data.frame type object with columns: nations, npi (scenario), Rt (mean), Rt_sd

xlim

Passed to plot

ylim

Passed to plot

cols

Colours for plots, should be same for npi_key2 if given

labels

Passed to legend legend parameter

legend_ncol

Passed to legend ncol parameter

npi_key2

Optional second npi_key that will be plotted with dashed lines

multiplier

Multiplier on the R values to plot - the distribution plotted will be that of multiplier * x where x is drawn from a lognormal with parameters specified in npi_key