View source: R/plot_day_zero.R
Generate a plot with time adjusted for the day at which the outbreak is considered to have started
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
countries |
Character vector of country names |
day0 |
An integer, the number of cumulative cases at which the outbreak is considered to have started |
cumulative |
Whether to count cases cumulatively |
time_before |
How many days before outbreak to show |
max_date |
The maximum date |
deaths |
Whether to use deaths instead of cases |
pop |
Adjust by population |
pop_adjustor |
Deaths per x (default million) when doing population adjustment |
by_district |
Show by district |
districts |
Show by districts, default FALSE |
roll |
How many days to get rolling values for |
roll_fun |
Mean or Sum |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.