| iceberg.plot | R Documentation |
Function to graph observed (above the 'waterline') and unobserved estimated (below it) COVID-19 cases in the United States and its jurisdictions.
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"),
...)
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 |
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. |
A plot. Also can optionally return various different things to the user if plot=FALSE.
Liam Revell liam.revell@umb.edu
References here.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.