| plot.estimate_infections | R Documentation |
plot method for class <estimate_infections>.
## S3 method for class 'estimate_infections'
plot(x, type = "summary", CrIs = c(0.2, 0.5, 0.9), ...)
x |
A list of output as produced by |
type |
A character vector indicating the name of the plot to return. Defaults to "summary" with supported options being "infections", "reports", "R", "growth_rate", "summary", "all". If "all" is supplied all plots are generated. |
CrIs |
Numeric vector of credible intervals to calculate. |
... |
Pass additional arguments to report_plots |
List of plots as produced by report_plots()
report_plots()
# get example output
out <- readRDS(system.file(
package = "EpiNow2", "extdata", "example_estimate_infections.rds"
))
# plot with error bars instead of ribbons
plot(out, style = "linerange")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.