plot.incidence_spline_model: Plot model from fit_incidence

Description Usage Arguments Examples

View source: R/main.R

Description

Plot time, reported cases, incidence curve with credible interval, and implied case curve.

Usage

1
2
## S3 method for class 'incidence_spline_model'
plot(x, ...)

Arguments

x

An "incidence_spline_model" output from fit_incidence.

...

Other parameters that can be included:

  • 'times': an optional vector of time indices.

  • 'plot_Chat': a logical for whether Chat should be plotted.

  • 'plot_reported': a logical for whether reported cases should be plotted.

  • 'plot_CI': a logical for whether CI should be plotted.

Examples

1
2
3
4
indiana_model <- fit_incidence(
                  reported = spanish_flu$Indiana, 
                  delay_dist = spanish_flu_delay_dist$proportion)
 plot(indiana_model, times = spanish_flu$Date)

incidental documentation built on Sept. 16, 2020, 5:07 p.m.