just.cases: Show confirmed SARS-CoV-2 infections and COVID-19 deaths...

View source: R/just.cases.R

just.casesR Documentation

Show confirmed SARS-CoV-2 infections and COVID-19 deaths through time

Description

Function to graph confirmed SARS-CoV-2 infections and COVID-19 deaths through time.

Usage

just.cases(states="Massachusetts",
	cumulative=FALSE,
	data=list(),
	window=7,
	bg="transparent",
	xlim=c(60,366+365+181),
	per.capita=FALSE,
	cols=NULL,
	show=c("both","cases","deaths","neither"),
	plot.bars=FALSE,
	...)

Arguments

states

states or jurisdictions to plot.

cumulative

show cumulative infections (logical).

data

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

window

window for moving average.

bg

background color for plots.

xlim

x-limits for the plot.

per.capita

show per 1M population (logical).

cols

colors for plotting.

show

what to show in plot.

plot.bars

logical indicating whether to plot bars.

...

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.