drawPositiveRate {RcmdrPlugin.RiskDemo} | R Documentation |
Plotting the positive rate of COVID-19 tests or the tests per case
Description
This function plots a time series of either the positive rate of COVID-19 tests or the number of tests per case.
Usage
drawPositiveRate(data, countries, start = "2020-06-01", end = "last",
measure = "positive_rate", curve = TRUE, bars = FALSE, log = FALSE)
Arguments
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 |
Value
No value.
Author(s)
Arto Luoma <arto.luoma@wippies.com>
See Also
Examples
data(dataCovid)
drawPositiveRate(dataCovid,countries=c("Finland","France"))
[Package RcmdrPlugin.RiskDemo version 3.2 Index]