drawTests: Plotting time series related to COVID-19 testing

View source: R/drawTests.R

drawTestsR Documentation

Plotting time series related to COVID-19 testing

Description

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

Usage

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

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

RcmdrPlugin.RiskDemo documentation built on Nov. 13, 2023, 5:07 p.m.