R Playground
Statistical computing & ggplot2
Run R in the browser via WebR with ggplot2, dplyr, and more — install extra WASM packages with webr::install() for statistics labs and visualization.
What you get when you open RStudio Notebook.
Statistical R stack
tidyverse-friendly WebR packages and ggplot outputs
Multi-cell notebook
Add, reorder, and run cells independently or all at once
Datasets & samples
Iris, Titanic, and your own CSV/uploads in a Data explorer
AI tutor + cheatsheet
Inline help and click-to-insert snippets beside the notebook
Export & share
Download notebook formats and share a read-only link
Opens in the full Jupyter/RStudio notebook workspace with datasets, export, and AI tutor.
# R playground — iris.csv loads from the Data panel
# Need an extra package? Run once per session, then library():
# webr::install("car")
# library(car)
library(ggplot2)
library(dplyr)
iris <- read.csv("iris.csv")
print(head(iris))
iris %>%
group_by(species) %>%
summarise(avg_sepal = mean(sepal_length), .groups = "drop")
ggplot(iris, aes(x = species, y = sepal_length, fill = species)) +
geom_boxplot() +
theme_minimal() +
labs(title = "Sepal length by species")