plot_time_to_report: Plot time from onset of symptoms to case being reported.

Description Usage Arguments Value Author(s)

View source: R/plotting.R

Description

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.

Usage

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)"
)

Arguments

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 reported to show date of case being reported, or onset for date of symptom onset

xLim

Limits of dates for x-axis

yLab

Label for y-axis

Value

desired plot

Author(s)

Andrew Edwards adapted from Mike Irvine's code


andrew-edwards/rightTruncation documentation built on Jan. 18, 2021, 7:43 p.m.