Plot an infectivity profile
Arguments
- ip
A long format infectivity profile
A dataframe containing the following columns:
boot (anything + default(1)) - a bootstrap identifier
probability (proportion) - the probability of new event during this period.
a0 (double) - the beginning of the time period (in days)
a1 (double) - the end of the time period (in days)
Must be grouped by: boot (exactly).
A default value is defined.
- alpha
the alpha value of the bootstrap lines
- ...
passed onto geom_segment for controlling line thickness, alpha etc.
Examples
if(interactive()) {
plot_ip(ganyani_ip,alpha=0.1)
}