drawBars: Plotting epidemic statistics

Description Usage Arguments Value Author(s) See Also Examples

View source: R/drawBars.R

Description

This function plots several epidemic statistics for selected countries.

Usage

1
2
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) dataCovid

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

drawBarsFin, dataCovid

Examples

1
2
3
data(dataCovid)
drawBars(data=dataCovid, countries=c('Finland','France'),start='2020-6-1',
         measure='new_cases',perMillion=TRUE)

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