plotR: Plotting the effective reproduction number (R)

Description Usage Arguments Value Author(s) See Also Examples

View source: R/plot.R

Description

This function plots a time series of the effective reproduction number R and its confidence interval.

Usage

1
plotR(data, region, start = NULL, end = NULL, confInt = 0.95)

Arguments

data

data frame including columns Aika (character string indicating the date), Alue (character string indicating the region) and val (numeric indicating the number of new cases)

region

characters string indicating the region for which the R series is computed

start

beginning date of the time window for which the R is computed

end

ending date of the time window for which the R is computed

confInt

decimal between 0 and 1, indicating the level of the confidence interval of R

Value

No value

Author(s)

Arto Luoma <arto.luoma@wippies.com>

See Also

plotForecast, dataCovidFin

Examples

1
2
data(dataCovidFin)
plotR(data=dataCovidFin, region='All regions')

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