drawBars {RcmdrPlugin.RiskDemo} | R Documentation |
Plotting epidemic statistics
Description
This function plots several epidemic statistics for selected countries.
Usage
drawBars(data, countries, start = "2020-06-01", end = "last", measure = "new_cases",
atop = TRUE, perMillion = FALSE, drawMean = TRUE, bars = TRUE)
Arguments
data |
data frame similar to (or including the same columns as) |
countries |
vector of characters srings indicating the countries for which the selected statistic is plotted |
start |
beginning date of the time window for which the statistic is plotted |
end |
ending date of the time window for which the statistic is plotted |
measure |
statistic to be plotted |
atop |
logical indicating if the bars of different countries are plotted on top of one another |
perMillion |
logical indicating if the statistic is proportioned to a population of million |
drawMean |
logical indicating if a smoothed curve is drawn |
bars |
logical indicating if bars are plotted |
Value
No value.
Author(s)
Arto Luoma <arto.luoma@wippies.com>
See Also
Examples
data(dataCovid)
drawBars(data=dataCovid, countries=c('Finland','France'),start='2020-6-1',
measure='new_cases',perMillion=TRUE)
[Package RcmdrPlugin.RiskDemo version 3.2 Index]