drawIncidenceFin {RcmdrPlugin.RiskDemo} | R Documentation |
This function plots incidence curves of an epidemic for selected regions of Finland. The incidences are new cases per 100 000 inhabitants within one or two weeks.
drawIncidenceFin(data, pop, regions, start = "2020-06-01", end = "last", weeks = 2,
includeAllRegions = TRUE, log = TRUE)
data |
data frame including columns |
pop |
data frame including columns |
regions |
vector of characters srings indicating the regions 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. |
includeAllRegions |
logical indicating if a curve for total incidence is included |
log |
logical indicating if a log scale is used in the plot |
No value
Arto Luoma <arto.luoma@wippies.com>
data(dataCovidFin)
data(popRegionsFin)
drawIncidenceFin(data = dataCovidFin, pop = popRegionsFin,
regions = popRegionsFin$Alue[1:5], start = "2020-06-01", end="last", weeks=2,
includeAllRegions = TRUE)