powered by
This function plots a time series of either the positive rate of COVID-19 tests or the number of tests per case.
drawPositiveRate(data, countries, start = "2020-06-01", end = "last", measure = "positive_rate", curve = TRUE, bars = FALSE, log = FALSE)
No value.
data frame including columns location (character string indicating the country), date (character string) and tests_per_case, positive_rate (numeric)
location
date
tests_per_case, positive_rate
vector of characters srings indicating the countries for which the selected statistic is plotted
beginning date of the time window for which the time series are plotted
ending date of the time window for which the time series are plotted
statistic for which the time series are plotted
logical indicating if smoothed curves are drawn
logical indicating if bars are plotted
logical indicating if a log scale is used in the plot
Arto Luoma <arto.luoma@wippies.com>
dataCovid, drawTests
data(dataCovid) drawPositiveRate(dataCovid,countries=c("Finland","France"))
Run the code above in your browser using DataLab