Welcome to r‑statistics.co

Interactive R tutorials with code that runs in your browser

An educational resource for those seeking knowledge related to machine learning and statistical computing in R. Here, you will find quality articles, with working R code and examples, where the goal is to make the #rstats concepts clear and as simple as possible.

This is built by keeping in mind, statisticians who are new to R programming language, R programmers without a stats background, analysts who work in SAS or Python, college grads and developers who are relatively new to both R and stats/ML. If you are completely new to R, the R Syntax 101 tutorial is a good place to start.

Correlation plot made with R

# Click Run to try R in your browser x <- c(2, 4, 6, 8, 10) mean(x) sum(x) # Draw a chart plot(x, x^2, type = "b", col = "#3b82f6", pch = 19, lwd = 2, cex = 1.5, main = "My First R Plot", xlab = "x", ylab = "x squared")

                
Start Learning R →