covid.deaths: Graph COVID-19 and non COVID-19 deaths by age group

View source: R/covid.deaths.R

covid.deathsR Documentation

Graph COVID-19 and non COVID-19 deaths by age group

Description

Function to show COVID and non-COVID deaths in 2020.

Usage

	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"),
		...)

Arguments

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 ("new" or "original").

...

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.