plot_risk | R Documentation |
Function for plotting risk of case escaping active monitoring
plot_risk(pstr_data, u = 7, phi = c(1e-04, 0.001, 0.01),
durations = 5:25, return_plot = FALSE)
pstr_data |
a data object with posterior distributions of gamma parameters (must have shape and scale column) |
u |
numeric value or vector of assumed duration(s) of time between exposure and monitoring |
phi |
probability a case becomes symptomatic |
durations |
durations of active monitoring to plot |
return_data |
logical, whether or not to return the data used for plotting |
if return_plot is specified, it returns the grob
plot_risk(ebola_gamma_pstr, u=c(5, 10))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.