Learn R Programming

covid19.analytics (version 2.1.3.3)

mtrends: function to visualize different indicators for trends in daily changes of cases reported as time series data, for mutliple (or single) locations

Description

function to visualize different indicators for trends in daily changes of cases reported as time series data, for mutliple (or single) locations

Usage

mtrends(data, geo.loc = NULL, confBnd = TRUE, info = "")

Arguments

data

data.frame with *time series* data from covid19

geo.loc

list of locations

confBnd

flag to activate/deactivate drawing of confidence bands base on a moving average window

info

additional info to display in the plot

Examples

Run this code
# triggers CRAN checks for timing
if (FALSE) {
ts.data <- covid19.data("ts-confirmed")
mtrends(ts.data, geo.loc=c("Canada","Ontario","Uruguay","Italy"))
}

Run the code above in your browser using DataLab