drawTests: Plotting time series related to COVID-19 testing

Description Usage Arguments Value Author(s) See Also Examples

View source: R/drawTests.R

Description

This function plots time series of new and total COVID-19 tests, possibly in proportion to population.

Usage

1
2
drawTests(data, countries, start = "2020-06-01", end = "last", measure = "new_tests", 
    atop = TRUE, perThousand = FALSE, drawMean = TRUE, bars = TRUE, log = FALSE)

Arguments

data

data frame similar to (or including the same columns as) dataCovid

countries

vector of characters strings indicating the countries for which the time series are plotted

start

beginning date of the time window for which the time series are plotted

end

ending date of the time window for which the time series are plotted

measure

statistic for which the time series are plotted

atop

logical indicating if the bars of different countries are plotted on top of one another

perThousand

logical indicating if the statistic is proportioned to a population of thousand

drawMean

logical indicating if a smoothed curve is drawn

bars

logical indicating if bars are plotted

log

logical indicating if a log scale is used in the plot

Value

No value.

Author(s)

Arto Luoma <arto.luoma@wippies.com>

See Also

dataCovid, drawPositiveRate

Examples

1
2
data(dataCovid)
drawTests(dataCovid,countries=c("Finland","France"),perThousand=TRUE)

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