Rscatter
htmlwidget for R wrapping 'regl-scatterplot' JavaScript library
Install / Use
/learn @davidpross/RscatterREADME
Introducing rscatter
An R package that creates an htmlwidget wrapping the regl-scatterplot JavaScript library. Create pan-and-zoomable scatterplots—with the rscatter 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/.
# 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))
<img width="534" alt="plot" src="https://github.com/davidpross/rscatter/assets/48140684/1fcfade1-3ebf-4576-aaa1-c770a878b15f">
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:
shiny::runApp(system.file("shiny-examples/spiral", package = "rscatter"))
Related Tools
- Jupyter Scatter is a widget for use with interactive computational notebooks in the Python world, written by the creator of
regl-scatterplot. - ScatterD3 is another HTML widget for making scatterplots.
Related Skills
node-connect
340.2kDiagnose OpenClaw node connection and pairing failures for Android, iOS, and macOS companion apps
frontend-design
84.1kCreate distinctive, production-grade frontend interfaces with high design quality. Use this skill when the user asks to build web components, pages, or applications. Generates creative, polished code that avoids generic AI aesthetics.
openai-whisper-api
340.2kTranscribe audio via OpenAI Audio Transcriptions API (Whisper).
commit-push-pr
84.1kCommit, push, and open a PR
