View source: R/drawPositiveRate.R
drawPositiveRate | R Documentation |
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)
data |
data frame including columns |
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 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 |
curve |
logical indicating if smoothed curves are drawn |
bars |
logical indicating if bars are plotted |
log |
logical indicating if a log scale is used in the plot |
No value.
Arto Luoma <arto.luoma@wippies.com>
dataCovid, drawTests
data(dataCovid)
drawPositiveRate(dataCovid,countries=c("Finland","France"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.