powered by
function to plot total number of cases per day for different groups
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 )
time series dataset to process, default all the possible cases: 'confirmed' and 'deaths' for all countries/regions
geographical location, country/region or province/state to restrict the analysis to
boolean flag to have one plot per figure
include a log scale plot in the static plot
a boolean flag to indicate whether the totals should be displayed with the records for the specific location
switch to turn off/on an interactive plot
file where to save the HTML version of the interactive figure
boolean argument for enabling or not displaying the interactive figure
# retrieve time series data TS.data <- covid19.data("ts-ALL") # static and interactive plot totals.plt(TS.data)
Run the code above in your browser using DataLab