iceberg.plot: Graph the observed and estimated COVID-19 infections using an...

View source: R/iceberg.plot.R

iceberg.plotR Documentation

Graph the observed and estimated COVID-19 infections using an iceberg style graph

Description

Function to graph observed (above the 'waterline') and unobserved estimated (below it) COVID-19 cases in the United States and its jurisdictions.

Usage

	iceberg.plot(
		state="United States",
		data=list(),
		delay=20,
		ifr=0.005,
		window=3,
		smooth=TRUE,
		span=c(0.12,0.3),
		bg="transparent",
		xlim=c(60,366+135),
		alpha=0.5,
		cdr=c("sigmoid","average"),
		...)

Arguments

state

state or jurisdiction.

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.

span

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

window

window for moving average.

smooth

smooth estimated infections (logical).

bg

background color for plots.

xlim

x-limits for the plot.

alpha

alpha transparency level for transparent elements of the plot.

cdr

model for case detection rate (CDR) through time.

...

optional arguments.

Value

A plot. Also can optionally return various different things to the user if plot=FALSE.

Author(s)

Liam Revell liam.revell@umb.edu

References

References here.


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