S3 methods for plotting metrics calculated from the output sof either
incidence(), growth_rate(), Rt(), or proportion().
Usage
# S3 method for class 'incidence'
plot(x, xlab = "Time", ...)
# S3 method for class 'growth_rate'
plot(x, xlab = "Time", ...)
# S3 method for class 'Rt'
plot(x, xlab = "Time", ...)
# S3 method for class 'proportion'
plot(x, xlab = "Time", ...)Examples
if (FALSE) { # interactive()
mod <- construct_model(
pathogen_structure = single(
case_timeseries = sarscov2$cases,
time = sarscov2$date
),
method = random_walk()
)
fit <- fit_model(mod)
gr <- growth_rate(mod)
plot(gr)
}
