totals.plt: function to plot total number of cases per day for different...

View source: R/covid19_plts.R

totals.pltR Documentation

function to plot total number of cases per day for different groups

Description

function to plot total number of cases per day for different groups

Usage

totals.plt(
  data0 = NULL,
  geo.loc0 = NULL,
  one.plt.per.page = FALSE,
  log.plt = TRUE,
  with.totals = FALSE,
  interactive.fig = TRUE,
  fileName = NULL,
  interactive.display = TRUE
)

Arguments

data0

time series dataset to process, default all the possible cases: 'confirmed' and 'deaths' for all countries/regions

geo.loc0

geographical location, country/region or province/state to restrict the analysis to

one.plt.per.page

boolean flag to have one plot per figure

log.plt

include a log scale plot in the static plot

with.totals

a boolean flag to indicate whether the totals should be displayed with the records for the specific location

interactive.fig

switch to turn off/on an interactive plot

fileName

file where to save the HTML version of the interactive figure

interactive.display

boolean argument for enabling or not displaying the interactive figure

Examples

# retrieve time series data
TS.data <- covid19.data("ts-ALL")

# static and interactive plot 
totals.plt(TS.data)



covid19.analytics documentation built on Aug. 18, 2022, 9:06 a.m.