View source: R/simulate_plots.R
spim_plot_rt_dist | R Documentation |
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
)
npi_key |
data.frame type object with columns: nations, npi (scenario), Rt (mean), Rt_sd |
xlim |
Passed to |
ylim |
Passed to |
cols |
Colours for plots, should be same for |
labels |
Passed to legend |
legend_ncol |
Passed to legend |
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 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.