mtrends: function to visualize different indicators for trends in...

View source: R/covid19_anal.R

mtrendsR Documentation

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

# triggers CRAN checks for timing
## Not run: 
ts.data <- covid19.data("ts-confirmed")
mtrends(ts.data, geo.loc=c("Canada","Ontario","Uruguay","Italy"))

## End(Not run)

covid19.analytics documentation built on Oct. 16, 2023, 1:06 a.m.