Rt Visualization in D3

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.


Rt visualization in D3

Travis build status Codecov test coverage Documentation Zenodo

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.RtD3 provides an interface for the JavaScript library rt_vis.

Installation

Install from CRAN with:

install.packages("RtD3")

Install the stable development version of the package using {drat}:

install.packages("drat")
drat:::add("epiforecasts")
install.packages("RtD3")

Install the unstable development version of the package with:

remotes::install_github("epiforecasts/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.

Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("RtD3")

0.0.1 by Hamish Gibbs, 6 years ago


https:/epiforecasts.io/RtD3, https://github.com/epiforecasts/RtD3


Report a bug at https://github.com/epiforecasts/RtD3/issues


Browse source code at https://github.com/cran/RtD3


Authors: Hamish Gibbs [aut, cre] , Sam Abbott [aut] , Sebastian Funk [aut]


Documentation:   PDF Manual  


MIT + file LICENSE license


Imports jsonlite, htmlwidgets, geojsonsf, data.table, purrr

Suggests testthat, spelling, knitr, covr, dplyr, sf, rgeos, rnaturalearth


See at CRAN