WebR Demo
Write and run R code directly in your browser – no installation required.
NoteLearning Objectives
- Understand how WebR runs R code client-side in the browser
- Practice creating scatter plots and fitting linear models
- Interpret regression output from
summary(lm(...))
Interactive R in the Browser
Edit and run the code below – it executes entirely in your browser via WebR.
1. Generate & Plot Data
2. Inspect the Model
TipTry It Yourself
Change n to 500 in the first code block and re-run both cells. How does the R-squared value change with more data?