R tutorials that run
in your browser

Every tutorial opens as a live R session. Change a number, press run, and the output updates in place. Free, without an account.

ggplot(mtcars, aes(wt, mpg)) runs on every page
wt  (1000 lbs) mpg
lm(mpg ~ wt): slope -4.46 0.919 drag the ringed point

If you're new, start with these five, in order about 65 minutes to your first real chart

Browse all tutorials

1,387 pages, grouped by subject

The full catalog, organized the way the subject is actually structured. Nothing is more than two clicks away, and every page runs live in your browser.

Learn R

34 tutorials

The language itself: syntax, data types, functions, and the habits that make R feel natural.

Data Wrangling

29 tutorials

Get data in, clean it up, and shape it with dplyr and tidyr, the daily toolkit of every analyst.

Statistics

134 tutorials

From probability to regression, ANOVA, Bayesian methods and statistical theory, with runnable R at every step.

EDA & Data Quality3
Probability10
Inference & Estimation18
Regression8
Reporting & Communication5
Regression in Practice12
ANOVA & Experiments10
GLMs & Categorical Data10
Multivariate Methods10
Nonparametric & Resampling7
Linear Algebra for Statistics8
Statistical Theory10
Bayesian Foundations4
MCMC & Stan5
Bayesian Modeling9
Machine Learning5

Visualization

42 tutorials

ggplot2 from the grammar up: every chart type, plus the polish that makes figures publication-ready.

Time Series

48 tutorials

Decompose, model and forecast time series with the classic r-statistics.co forecasting guides.

Advanced R

29 tutorials

How R actually works: functional programming, OOP, environments, debugging and performance.

Classic Tutorials

9 tutorials

The originals that put r-statistics.co on the map, read by millions of R users since 2016.

Practice Exercises

158 tutorials

Auto-graded problems and timed mastery quizzes. Solve in the browser, earn the certificate.

Featured Problem Sets17
Mastery Quizzes (Certificate)11
R Fundamentals12
Data Wrangling9
Visualization6
Statistics103

Practice Exercises

Short problems you solve in the browser, with instant feedback. Every section above has matching sets, and solving 80% of a track earns the certificate.

Browse the exercises →
R
A note from the desk

I started this site because the R tutorials I was handed early on did the one thing that helped least: they showed me code and told me to trust it. So here, you never have to. Every snippet on every page is yours to break, rerun, and argue with. If something on this site doesn't click when you run it, that's a bug in my writing, not in your understanding.

r-statistics.co Teaching R online since 2016