plot.incidence_spline_model {incidental}R Documentation

Plot model from fit_incidence

Description

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

Usage

## 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


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


[Package incidental version 0.1 Index]