infections.by.state: Show distribution of estimated COVID-19 infections among...

View source: R/infection.estimator.R

infections.by.stateR Documentation

Show distribution of estimated COVID-19 infections among states

Description

Function to graph the distribution of estimated COVID-19 infections among states through time.

Usage

	infections.by.state(states=NULL,
		cumulative=FALSE,
		stacked=TRUE,
		data=list(),
		delay=20,
		ifr=0.005,
		window=7,
		smooth=TRUE,
		span=c(0.12,0.3),
		show.ifr=TRUE,
		bg="transparent",
		xlim=c(60,366+135),
		show.as.percent=FALSE,
		cdr=c("sigmoid","average"),
		...)

Arguments

states

states or jurisdictions to plot.

cumulative

show cumulative infections (logical).

stacked

show infections stacked (logical).

data

list containing CDC data. If not supplied, function will create this object.

delay

average lag from infection to death.

ifr

infection-fatality-ratio/rate or function. If more than one value is specified, IFR is interpolated using LOESS smoothing.

window

window for moving average.

smooth

smooth estimated infections (logical).

span

values of span to be passed to loess. First value is for infections through time. Second value is for IFR if applicable.

show.ifr

show modeled IFR (logical).

bg

background color for plots.

xlim

x-limits for the plot.

show.as.percent

show as a percent of all infections (logical).

cdr

model for case detection rate (CDR) through time.

...

optional arguments.

Value

A plot.

Author(s)

Liam Revell liam.revell@umb.edu

References

References here.


liamrevell/covid19.Explorer documentation built on Feb. 19, 2023, 3:09 p.m.