plot_rt() plots the effective reproductive number over the course of the epidemic in Shelby County, along with reference dates and severity levels for comparison. Optionally, supplied unsmoothed Rt estimates to .rough_rt will add points for this estimates to the background for reference.

plot_rt(.data, start = "2020-04-01", end = Sys.Date(), .rough_rt = NULL)

Arguments

.data

Rt estimates resulting from a call to estimate_rt()

start

The start date of the x axis

end

The end date of the x axis

.rough_rt

Unsmoothed Rt estimates, e.g. as produced by estimate_rt(trend = 1L, boost = FALSE)

Value

A ggplot object