An open API service indexing awesome lists of open source software.

https://github.com/davidpross/rscatter

htmlwidget for R wrapping 'regl-scatterplot' JavaScript library
https://github.com/davidpross/rscatter

dataviz htmlwidgets r rstats scatter-plot scatterplot visualization

Last synced: about 1 month ago
JSON representation

htmlwidget for R wrapping 'regl-scatterplot' JavaScript library

Awesome Lists containing this project

README

          

# Introducing rscatter
An R package that creates an [htmlwidget](https://www.htmlwidgets.org/) wrapping the [regl-scatterplot](https://github.com/flekschas/regl-scatterplot) JavaScript library. Create pan-and-zoomable scatterplots—with the [rscatter](https://davidpross.github.io/rscatter/reference/rscatter.html) function—that scale to millions of points and display in the RStudio viewer, R Markdown, Quarto, and Shiny. View additional documentation and function references at https://davidpross.github.io/rscatter/.

```R
# Install remotes package if necessary
if (!require("remotes")) {
install.packages("remotes")
}

remotes::install_github("davidpross/rscatter", upgrade = FALSE)
library(rscatter)

rscatter(rnorm(1e4), rnorm(1e4))
```
plot

# Shiny example
You can integrate rscatter in Shiny apps; a sample Fermat spiral app lives at `inst/shiny-examples/spiral`. Run it from R with:

```r
shiny::runApp(system.file("shiny-examples/spiral", package = "rscatter"))
```

# Related Tools
- [Jupyter Scatter](https://jupyter-scatter.dev/) is a widget for use with interactive computational notebooks in the Python world, written by the creator of [`regl-scatterplot`](https://github.com/flekschas/regl-scatterplot).
- [ScatterD3](https://juba.github.io/scatterD3/) is another HTML widget for making scatterplots.