jsReact
jsReact copied to clipboard
R package: Modelling in R. Interactivity in JS. Best of both worlds.
jsReact
jsReact is designed to help you utilise JavaScript's visualisation libraries and R's modelling packages to build tailor-made interactive apps. The basic framework is set, and at the moment I am expanding on examples (see the 'example' folder) and tutorials (see 'vignettes'). Collaboration is welcomed!
For more information, see the website which contains tutorials, examples and package documentation.
Installation
jsReact is currently not available from CRAN, but you can install the development version from github with:
# install.packages("devtools")
devtools::install_github("kcf-jackson/jsReact")
Who might be interested in this package / repo ?
-
Experienced R users who have heard JS is powerful, attempted to learn it but found the barrier too high.
-
Researchers who are happy to step up their data visualisation game with JS, but still want to do modelling in R.
List of examples
Exploring the basics of the package
- R-JS connection and a slider
- Slider with plotly.js
- Slider with p5.js and plotly.js
Exploring basic statistical models
- KNN (and other) classification algorithms + p5.js
- Digit Recognition with GLM (with p5.js)
- Simple illustration of non-parametric estimation
Testing the power of the package
Examples created with specific goals in mind
Examples in action

