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
- Host: GitHub
- URL: https://github.com/davidpross/rscatter
- Owner: davidpross
- License: mit
- Created: 2023-08-19T16:20:54.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2026-02-07T01:02:34.000Z (about 1 month ago)
- Last Synced: 2026-02-07T11:29:23.902Z (about 1 month ago)
- Topics: dataviz, htmlwidgets, r, rstats, scatter-plot, scatterplot, visualization
- Language: R
- Homepage: https://davidpross.github.io/rscatter/
- Size: 6.86 MB
- Stars: 2
- Watchers: 2
- Forks: 0
- Open Issues: 5
-
Metadata Files:
- Readme: README.md
- Changelog: NEWS.md
- License: LICENSE.md
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))
```

# 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.