single.trend | R Documentation |
function to visualize different indicators for trends in daily changes of cases reported as time series data
single.trend(ts.data, confBnd = TRUE, info = "")
ts.data |
time series data |
confBnd |
optional argument to remove the drawing of a confidence band |
info |
addtional information to display in plots |
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",])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.