single.trend: function to visualize different indicators for trends in...

View source: R/covid19_anal.R

single.trendR Documentation

function to visualize different indicators for trends in daily changes of cases reported as time series data

Description

function to visualize different indicators for trends in daily changes of cases reported as time series data

Usage

single.trend(ts.data, confBnd = TRUE, info = "")

Arguments

ts.data

time series data

confBnd

optional argument to remove the drawing of a confidence band

info

addtional information to display in plots

Examples


tor.data <- covid19.Toronto.data()
single.trend(tor.data[tor.data$status=="Active Cases",]) 


ts.data <- covid19.data("ts-confirmed")
ont.data <- ts.data[ ts.data$Province.State == "Ontario",]
single.trend(ont.data)

single.trend(ts.data[ ts.data$Country.Region=="Italy",])

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