drawIncidence: Plotting incidence curves of an epidemic

Description Usage Arguments Value Author(s) See Also Examples

View source: R/drawIncidence.R

Description

This function plots incidence curves of an epidemic for selected countries. The incidences are new cases per 100 000 inhabitants within one or two weeks.

Usage

1
2
drawIncidence(data, countries, start = "2020-06-01", end = "last", weeks = 2, 
    log = TRUE)

Arguments

data

data frame including columns location (character string indicating the country), date (character string) and new_cases_per_million (numeric)

countries

vector of characters srings indicating the countries for which the curves are plotted

start

beginning date of the time window for which the curve is plotted

end

ending date of the time window for which the curve is plotted

weeks

Integer telling how many weeks' observations are used to calculate the incidence. Usually 1 or 2.

log

logical indicating if a log scale is used in the plot

Value

No value

Author(s)

Arto Luoma <arto.luoma@wippies.com>

See Also

drawIncidenceFin, dataCovid

Examples

1
2
3
4
data(dataCovid)
Europe <- c("Germany","France","United Kingdom","Italy","Spain","Poland","Romania",
    "Netherlands","Belgium","Greece")
drawIncidence(dataCovid,countries=Europe)

RcmdrPlugin.RiskDemo documentation built on April 6, 2021, 5:06 p.m.