tsWidget: tsWidget

Description Usage Arguments

View source: R/tsWidget.R

Description

Create a time series widget of Rt data

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
tsWidget(
  rtData = NULL,
  activeArea = NULL,
  activeTime = "all",
  runDate = NULL,
  width = 900,
  elementId = NULL,
  dryRun = FALSE,
  downloadUrl = NULL,
  ts_color_ref = NULL
)

Arguments

rtData

data.frame, rt estimates in the format 'Source':'rtData':x, 'casesInfectionData':x, 'casesReportData':x, 'obsCasesData':x, ...

activeArea

character, the default area to plot.

activeTime

character, the default time window (defaults to 'all')

runDate

character, date of estimate run in the format ('YYYY-MM-DD')

width

integer, width in pixels

elementId

string, id of element

dryRun

Logical, defaults to FALSE. Should the function be tested without the widget being created.

downloadUrl

string, optional URL to download datasets

ts_color_ref

list, default reference for time series plots. See default_ts_colors for format. Useful for checking the integrity of input data.


RtD3 documentation built on Nov. 8, 2020, 4:22 p.m.