Learn R Programming

RcmdrPlugin.RiskDemo (version 3.2)

plotR: Plotting the effective reproduction number (R)

Description

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

Usage

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

Value

No value

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

Author

Arto Luoma <arto.luoma@wippies.com>

See Also

plotForecast, dataCovidFin

Examples

Run this code
data(dataCovidFin)
plotR(data=dataCovidFin, region='All regions')

Run the code above in your browser using DataLab