totals.plt | R Documentation |
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
)
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 |
# retrieve time series data
TS.data <- covid19.data("ts-ALL")
# static and interactive plot
totals.plt(TS.data)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.