View source: R/drawIncidence.R
drawIncidence | R Documentation |
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)
data |
data frame including columns |
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 |
No value
Arto Luoma <arto.luoma@wippies.com>
drawIncidenceFin
, dataCovid
data(dataCovid)
Europe <- c("Germany","France","United Kingdom","Italy","Spain","Poland","Romania",
"Netherlands","Belgium","Greece")
drawIncidence(dataCovid,countries=Europe)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.