Description Usage Arguments Value Author(s)
Bar plots for each day, plus points for each case. Adapted from Mike Irvine's code, could replace with Sean's later code that was used in the manuscript. Need bit more description.
1 2 3 4 5 6 7 8 9 | plot_time_to_report(
data,
start_date_report = "2020-03-10",
start_date_onset = "2020-03-05",
show_weekends = FALSE,
x_axis = "reported",
xLim = c(lubridate::ymd("2020-02-28"), lubridate::ymd("2020-04-07")),
yLab = "Time from symptom onset\n to reported case (days)"
)
|
data |
tibble with columns XX |
start_date_report |
First date of reported case to show. |
start_date_onset |
First date of symptom onset to show |
show_weekends |
Highlight weekends or not |
x_axis |
Either |
xLim |
Limits of dates for x-axis |
yLab |
Label for y-axis |
desired plot
Andrew Edwards adapted from Mike Irvine's code
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.