Create interactive visualisations of Rt estimates using D3.js (Gibbs et al. (2020)). Developed primarily targeting Rt estimates generated by the EpiNow2 package, RtD3 aims to make simple, beautiful visualisations that help researchers explore their results and share them with others.
Install from CRAN with:
Install the stable development version of the package using
install.packages("drat") drat:::add("epiforecasts") install.packages("RtD3")
Install the unstable development version of the package with:
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
geoData = rnaturalearth::ne_countries(returnclass = 'sf') summaryWidget(geoData = geoData, rtData = rtData)
Any scripts or data that you put into this service are public.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.