Rt visualization in D3

An R package for generating interactive visualisations of rt estimates. Provides an interface for the JavaScript library rt_vis. This package was designed using rt estimates generated by the EpiNow2 package, an open source resource for creating rt estimates.

Installation

Install the development version of this package with:

remotes::install_github("hamishgibbs/RtD3")

Quickstart

Estimates are available from epiforecasts covid-rt-estimates in the format expected by this package. Use the helper function readInEpiNow2 to generate the summary widget with existing estimates.


rtData <- list("Cases" = readInEpiNow2(
    path = "https://raw.githubusercontent.com/epiforecasts/covid-rt-estimates/master/national/cases/summary",
    region_var = "country"))

summaryWidget(rtData = rtData)

Optionally, a map can be included using data from the rnaturalearth package.


geoData = rnaturalearth::ne_countries(returnclass = 'sf')

summaryWidget(geoData = geoData, rtData = rtData)

Development

Comments and contributions to this package are welcome. To record a problem with the package, please create an issue on Github.