Description Usage Arguments Value See Also
View source: R/plotting_functions.R
Provides a neat plot of the provided data, "best fit" line and prediction intervals.
1 2 |
model_data |
a data frame containing the best fit model trajectory. Should be three columns: variable (time), value and strain. Strain is simply a grouping variable and could be anything (eg. age group, location) |
actual_data |
a data frame containing the actual data. Columns are same as model_data |
group |
this is simply used for the file name of the plot. _fit.pdf will be appended |
lower |
OPTIONAL coordinates of the lower prediction bound |
upper |
OPTIONAL coordinates of the upper prediction bound |
infection_times |
OPTIONAL data frame to mark vertical lines representing events. A data frame with columns time and infection, with the time and label respectively |
plot_title |
OPTIONAL plot title |
returns the ggplot object
restrain_bounds
, create_ploygons
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.