R Programming
R for data analysis, charts and statistics: the tidyverse, ggplot2 and the models health, pharma and insurance teams use.
AiTeky Originals
Our own lessons in plain English. Run the code right here and check your answers as you go.
All 5 R Programming originals →Beginner
Start here. No background needed beyond school maths.
An Introduction to R (official manual)
Expert's own introduction: vectors, data frames, functions, statistical models and graphics, straight from the people who maintain R.
Data Analysis and Visualisation in R for Ecologists
A beginner workshop lesson on loading, cleaning, summarising and charting field data in R with the tidyverse. Useful for anyone with survey or field data.
Data Visualization: A Practical Introduction
A social scientist's guide to making good charts in ggplot2, from first plots to maps and model results.
Fundamentals of Data Visualization
How to choose and design honest, clear charts, with every example made in ggplot2. About judgement more than code.
ggplot2: Elegant Graphics for Data Analysis (3rd edition)
The ggplot2 book by its author: layers, scales, coordinates, facets and themes, explained from the grammar of graphics up.
Hands-On Programming with R
Learn R as a programming language by building small projects: a dice roller, a deck of cards and a slot machine. Covers objects, functions, loops and environments gently.
Happy Git and GitHub for the useR
A friendly guide to using Git and GitHub from R and RStudio: installing, connecting, committing and working with others on R projects.
Introduction to Data Science (Data Analysis and Prediction Algorithms with R)
A Harvard professor's free book: R, the tidyverse, charts, probability, inference, regression and machine learning, taught through real case studies.
Introduction to Modern Statistics
A free, modern statistics textbook with R tutorials: exploring data, regression, inference by simulation and by formula.
Quarto: Get Started
Write reports, slides and websites that mix text with R code and its results. Quarto is the successor to R Markdown and also works with Python.
R for Data Science (2nd edition)
The standard free book for learning R the modern way: importing, tidying, transforming and charting data with the tidyverse, then communicating results with Quarto.
R for Reproducible Scientific Analysis
A free lesson used in workshops worldwide: R basics, data frames, dplyr, ggplot2 and writing reusable functions, using a world development dataset.
R Graphics Cookbook (2nd edition)
Hundreds of short recipes for ggplot2 charts: bar charts, line charts, scatter plots, annotations, colours and legends, each with code you can copy.
R Markdown: The Definitive Guide
Everything about R Markdown documents: reports, presentations, dashboards and books built from text and R code.
R Programming for Data Science
A short, practical book on R as a language for data work: reading data, control structures, functions, loops, debugging and simulation.
RStudio and Posit Cheatsheets
One-page printable summaries for dplyr, tidyr, ggplot2, stringr, lubridate, Shiny, R Markdown and more. Keep them open while you practise.
Shiny: Get Started
The official step-by-step tutorial for building your first Shiny app in R, from layout and inputs to reactive outputs and sharing the app.
Statistical Inference via Data Science (ModernDive)
Introductory statistics taught with R and the tidyverse: regression, sampling, bootstrapping, confidence intervals and hypothesis tests.
swirl: Learn R Inside R
An interactive course that runs inside your own R console: it asks questions, checks your answers and teaches R basics, data cleaning and statistics step by step.
The Epidemiologist R Handbook
A practical R manual written by field epidemiologists: cleaning case data, epidemic curves, survival, maps, outbreak reports and dashboards, with real public health examples.
Tidyverse: Learn the Tidyverse
The ••••'s own starting page: which book to read, which package does what, and where to find help for dplyr, tidyr, readr and ggplot2.
Advanced
Once the core skills are comfortable.
admiral: ADaM Datasets in R
An open-source R package for building the analysis datasets (ADaM) that clinical trial reports are made from, with worked examples.
Advanced R
How R really works: environments, functions, object systems, metaprogramming and performance. Read it once the basics feel easy.
Bayes Rules! An Introduction to Applied Bayesian Modeling
A friendly introduction to Bayesian statistics with R: priors, posteriors, regression and hierarchical models, with plenty of worked examples.
CRAN Task Views
Curated lists of the best R packages by subject: clinical trials, survival analysis, econometrics, finance, spatial data, time series and many more.
Geocomputation with R
Working with maps and spatial data in R: points, boundaries, rasters, map making and spatial modelling with sf and terra.
gtsummary: Publication-Ready Tables
Make baseline tables and model result tables in R that are ready for a paper or a clinical report, in a few lines of code.
Introduction to Econometrics with R
An econometrics course in R: regression, panel data, instrumental variables and time series, with interactive examples.
Loss Data Analytics
A free, open actuarial textbook with R code: claim frequency and severity models, credibility, pricing and insurance portfolio management.
Mastering Shiny
Build interactive web apps and dashboards in R with Shiny: inputs, outputs, reactivity, modules and testing.
Modern Statistics for Modern Biology
Statistics for biologists with R and Bioconductor: testing, clustering, multivariate methods and high-throughput data.
Orchestrating Single-Cell Analysis with Bioconductor
How to analyse single-cell gene expression data in R with Bioconductor: quality control, normalisation, clustering and marker genes.
pharmaverse: Open-Source R for Clinical Reporting
A collection of open-source R packages, built by drug companies together, for producing clinical trial datasets and reports in R.
R for Clinical Study Reports and Submission
How to produce the tables, listings and figures of a clinical study report in R, and prepare an R-based submission to a drug regulator.
R Packages (2nd edition)
How to turn your R functions into a proper package with documentation, tests and checks, the way professional R teams share code.
renv: Project Environments for R
Keep each R project's package versions recorded and repeatable, so a colleague or a server gets the same results months later.
Survival Analysis in R (tutorial)
A clear tutorial on time-to-event data in R: censoring, Kaplan-Meier curves, the log-rank test, Cox regression and reporting the results.
Telling Stories with Data
A complete workflow for data science in R: gathering data, cleaning, modelling, writing it up and making the work reproducible, with real examples.
Text Mining with R
Tidy text analysis in R: word counts, sentiment, tf-idf, word pairs and topic models, using the tidytext package.
The survival Package: Survival Analysis Vignette
The survival package's own guide by its author: Surv objects, survfit, coxph, checking proportional hazards and more advanced models.
The targets R Package User Manual
Build R analysis pipelines that only re-run the steps whose inputs changed. Useful for long reports and model pipelines.
Tidy Modeling with R
How to build, tune and check machine learning models in R with the tidymodels packages: splitting data, recipes, resampling and model comparison.

