powered by
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.
drawIncidence(data, countries, start = "2020-06-01", end = "last", weeks = 2, log = TRUE)
No value
data frame including columns location (character string indicating the country), date (character string) and new_cases_per_million (numeric)
location
date
new_cases_per_million
vector of characters srings indicating the countries for which the curves are plotted
beginning date of the time window for which the curve is plotted
ending date of the time window for which the curve is plotted
Integer telling how many weeks' observations are used to calculate the incidence. Usually 1 or 2.
logical indicating if a log scale is used in the plot
Arto Luoma <arto.luoma@wippies.com>
drawIncidenceFin, dataCovid
drawIncidenceFin
dataCovid
data(dataCovid) Europe <- c("Germany","France","United Kingdom","Italy","Spain","Poland","Romania", "Netherlands","Belgium","Greece") drawIncidence(dataCovid,countries=Europe)
Run the code above in your browser using DataLab