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@v0.1.1", 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:
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.