covid.deaths | R Documentation |
Function to show COVID and non-COVID deaths in 2020.
covid.deaths( age.group=c( "Under 1 year", "1-4 years", "5-14 years", "15-24 years", "25-34 years", "35-44 years", "45-54 years", "55-64 years", "65-74 years", "75-84 years", "85 years and over"), sex=c("Male","Female"), all.causes=TRUE, cumulative=FALSE, data=list(), xlim=c(60,366+365+181), bg="transparent", plot=c("standard","smooth","bar"), show=c("raw","per.capita","percent","percent.of.covid.deaths"), split.groups=TRUE, show.total.deaths=TRUE, palette=c("new","original"), ...)
age.group |
age group or groups. |
sex |
sex or sexes. |
all.causes |
ignored. |
cumulative |
show cumulative deaths (logical). |
data |
list containing CDC data. If not supplied, function will create this object. |
xlim |
x limits for the plot. |
bg |
background color of the plot. |
plot |
plotting options. |
show |
what to plot. |
split.groups |
split groups (logical). |
show.total.deaths |
show total deaths (logical). |
palette |
palette to use ( |
... |
optional arguments. |
A plot.
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.