Free Resources for Learning R Programming for Data Science
Here you can find a number of great R books from top most creators and data scientists and other useful R related resources available online for free π π
Content
- R Stats
- {ggplot2}
- Statistics with R
- Machine Learning with R
- R Spatial
- Data Visualization
- R Markdown
- R Shiny Apps
- R Package Development
- R Packages Tutorials
- Interesting Personal Blogs
- Get Help
R Stats
- “Cookbook for R” β free online book π by Winston Chang
- “Technical Foundations of Informatics” β free online book π by Michael Freeman & Joel Ross
- “Efficient R Programming” β free online book π by Colin Gillespie & Robin Lovelace
- “YaRrr! The Pirate’s Guide to R” β free online book π by Nathaniel Phillips
- “Hands-On Programming with R” β free online book π by Garrett Grolemund
- “R for Data Science” β free online book π by Hadley Wickham & Garrett Grolemund
- “Advanced R” β free online book π by Hadley Wickham
- “Data wrangling, exploration, and analysis with R” β free online book π by Jenny Bryan
- “Getting Used to R, RStudio, and R Markdown” β free online book π by Chester Ismay & Patrick C. Kennedy
- “Tidy evaluation” β free online book π by Lionel Henry & Hadley Wickham
- “Happy Git and GitHub for the useR” β free online book π by Jenny Bryan
- “R Cookbook, 2nd Edition” β free online book π by James Long & Paul Teetor
- “A ModernDive into R and the tidyverse” β free online book π by Chester Ismay & Albert Y. Kim
- “Modern R with the tidyverse” β free online book π by Bruno Rodrigues
- “Introduction to Data Exploration and Analysis with R” β free online book π by Michael Mahoney
- “Text Mining with R: A Tidy Approach” β free online book π by Julia Silge & David Robinson
- “The tidyverse style guide” β free online book π by Hadley Wickham
- “Advanced R Course” β free online book π by Florian PrivΓ©
- “What They Forgot to Teach You About R” β free online book π by Jennifer Bryan & Jim Hester
- “R in Nutshell” β free online book π by Joseph Adler
- “R for Social Scientists” β free online book π by Paul C. Bauer & Rudolf Farys
- “R for Journalists” β free online book π by Andrew Ba Tran
- “R for Excel” β free online book π by Julie Lowndes & Allison Horst
- “Twitter for R programmers” β free online book π by Oscar Baruffa & Veerle van Son
- “Mastering Spark with R” β free online book π by Javier Luraschi, Kevin Kuo, Edgar Ruiz
- R Graph Gallery π π π¨
- Five Simple Tipps to Improve Your R Code
-
R-Bootcamp β free online course by Ted Laderas and Jessica Minnier about manipulating and visualizing data in R using the
tidyverse
suite of packages - Advanced R for Bioinformatics Summer School
- SatRdays Neuchatel 2020 Workshop
- R Studio 2019 Workshops
- R Studio 2020 Workshops
- Going Deeper with R β free live course πΊ by R by David Keyes
- Coding Club Tutorials
- Top 100 R Tutorials: Basic to Advance
- RYouWithMe β course by R-Ladies Sydney
- R Programming: Learn the Basics of Statistical Computing β YouTube πΊ Videos
- Introduction to Text Analytics with R β YouTube πΊ Videos
- R Programming Tutorials β YouTube πΊ Videos
- “Exploratory Data Analysis & Visualization” β free online book π by Zach Bogart & Joyce Robbins
- RStudio Webinars πΊ π»
- R Consortium β YouTube videos πΊ
- rOpenSci Community Vimeo Channel β rOpenSci Community videos πΊ
- Rstats education β a repository for discovering courses and learning materials for learning and teaching R.
- Ready for R β a free online course by Dr. Ted Laderas, an Assistant Professor at Oregon Health and Science University and an RStudio certified trainer.
- Data science with R: A robust toolkit for psychological research β a free course by Danielle Navarro
- Statistics 431: Advanced Statistical Computing with R β 9-week online course at Cal Poly taught by Dr. Kelly Bodwin and Dr. Hunter Glanz
{ggplot2}
- “ggplot2: Elegant Graphics for Data Analysis” β free online book π by Hadley Wickham
- Source code of the book π “Fundamentals of Data Visualization”
- Top 50 ggplot visualizations
- Gallery of ggplot2 extensions
- Extending ggplot2
- #TidyTuesday Collection
- A ggplot2 Tutorial for Beautiful Plotting in R β a blogpost by CΓ©dric Scherer
- R Graphics: Introduction to ggplot2 β slides π
- An Introduction to {ggplot2} β slides π by CΓ©dric Scherer
- Data Science and Visualizations with R β free course by Jonathan Wong on the use of tidyverse packages
Useful Packages
{cowplot}
β plot arrangements, themes & annotations β wilkelab.org/cowplot{ggalt}
β alternative coords, geoms, stats & scales β github.com/hrbrmstr/ggalt{gganimate}
β create animations β gganimate.com{ggforce}
β several interesting add-on features β ggforce.data-imaginist.com{ggmaps}
β access to Google & Stamen maps β github.com/dkahle/ggmap{ggplotly}
β create interactive plots β plot.ly/ggplot2{ggpubr}
β publication-ready plot in one line β github.com/kassambara/ggpubr{ggraph}
β networks, graphs & trees β github.com/thomasp85/ggraph{ggrepel}
β prevent overlapping text labels β github.com/slowkow/ggrepel{ggridges}
β geoms for joy plots β github.com/clauswilke/ggridges{ggtext}
β rich-text rendering β github.com/clauswilke/ggtext{ggthemes}
β additional themes, sclaes & geoms β github.com/jrnold/ggthemes{hrbrthemes}
β typography-centric themes β github.com/hrbrmstr/hrbrthemes{lemon}
β axis & legend add-ons β github.com/stefanedwards/lemon{patchwork}
β combine ggplots β github.com/thomasp85/patchwork{rayshader}
β hillshaded maps in 2D & 3D β github.com/tylermorganwall/rayshader{showtext}
β use custom fonts β github.com/yixuan/showtext
Statistics with R
- “Statistical Thinking for the 21st Century” β free online book π by Russell A. Poldrack
- “Statistics for Social Sciences II: Multivariate Techniques” β notes by Eduardo GarcΓa PortuguΓ©s
- “Doing Bayesian Data Analysis in brms and the tidyverse” β free online book π by A Solomon Kurz
- “Foundations of Statistics with R” β free online book π by Darrin Speegle
- Statistics and R β PhD Training Workshop by Anastasia Ushakova & Emma Waterston
- Teacups giraffes and statistics
Machine Learning with R
- Your First Machine Learning Project in R Step-By-Step β blogpost by Jason Brownlee
- Introduction to Machine Learning with the Tidyverse β two-day workshop offered at rstudio::conf 2020 by Alison Hill & Garrett Grolemund
- Hands-On Machine Learning with R β free online book π by Bradley Boehmke & Brandon Greenwell
- Supervised Machine Learning: Case Studies in R β A Free, Interactive Course Using Tidy Tools
- Diploma in Machine Learning with R studio β free online machine learning course by R Studio
- Interpretable Machine Learning: A Guide for Making Black Box Models Explainable β free online book π by Christoph Molnar
R Spatial
- “Geocomputation with R” β free online book π by Robin Lovelace, Jakub Nowosad & Jannes Muenchow
- Spatial Data Science with R
- “Spatial Microsimulation with R” β free online book π by Robin Lovelace & Morgane Dumont
- “Spatial Data Science” β free online book π by Edzer Pebesma, Roger Bivand
- “30 Day Map Challenge” β free online book π by Bob Rudis
- “Advanced Spatial Modeling with Stochastic Partial Differential Equations Using R and INLA” β free online book π by Elias T. Krainski, Virgilio GΓ³mez-Rubio, Haakon Bakka, Amanda Lenzi, Daniela Castro-Camilo, Daniel Simpson, Finn Lindgren & HΓ₯vard Rue
- “Introduction to Spatial Data Programming with R” β free online book π by Michael Dorman
- “Introduction to Web Mapping” β free online book π by Michael Dorman
- Introduction to GIS with R β a blogpost by Jesse Sadler
Data Visualization
- “Data Visualization” β free online book π by Kieran Healy
- “Interactive web-based data visualization with R, plotly, and shiny” β free online book π by Carson Sievert
- “Fundamentals of Data Visualization” β free online book π by Claus Wilke
- Data Visualization β free online course πΊ by Dr. Andrew Heiss (Georgia State University)
- “Visualizing Data” β homepage by Andy Kirk
- “Visual Cinnamon” β homepage by Nadieh Bremer
- Explorable Explanations
- “Nightingale” β blog by the Data Visualization Society on Medium
- “Multiple Views: Visualization Research Explained” β DataViz blog on Medium
- Graphics Principles Cheatsheet
- Data Visualization in R β workshop for the 2019 Navy and Marine Corps Public Health Conference by Brooke Anderson
- BBC Visual and Data Journalism cookbook for R graphics
- “R Graphics Cookbook, 2nd edition” β free online book π by Winston Chang
- How to Use C.R.A.P. Design Principles For Better UX? β blogpost on CRAP (Contrast, Repetition, Alignment, and Proximity) principle for better data visualization
- Visualization Analysis and Design β book π & lecture slides π by Tamara Munzer
- Principles & Practice of Data Visualization β slides π for the Data Visualization course at Oregon Health & Science University
Colors
- Viz Palette β colors in action (plus colorblind check)
- Color Space β color palette generator
- Chroma.js β color palette helper
- HCL Wizard β manipulating and assessing colors & palettes
- ColorThief β grab color palettes from any image
- Data Color Picker β Generator of equidistant sequential, monochromatic and diverging palettes
- DataWrapper’s Friendly Guide to Colors and What to Consider when Choosing Colors
- Adobe Color β creating, sharing, and exploring rule-based and custom color palettes.
- ColorBrewer β sequential, diverging, and qualitative color palettes that take accessibility into account.
- viridis β percetually uniform color scales.
- Scientific Colour-Maps β perceptually uniform color scales like viridis. Use them in R with scico.
- Colorgorical β create color palettes based on fancy mathematical rules for perceptual distance.
- Colorpicker for data β more fancy mathematical rules for color palettes (explanation).
- iWantHue β yet another perceptual distance-based color palette builder.
- ColourLovers β like Facebook for color palettes.
- Photochrome β word-based color pallettes.
Chart Types
- From Data to Viz β A decision tree for dozens of chart types with links to R and Python code.
- Data Viz Project β Descriptions and examples for 150 different types of visualizations. Also allows you to search by data shape and chart function (comparison, correlation, distribution, geographical, part to whole, trend over time, etc.).
- Visualization Universe
- Material.io
- Data Visualization 101
- Chart of Chart Suggestions
- The Data Visualisation Catalogue β Descriptions, explanations, examples, and tools for creating 60 different types of visualizations.
- The Chartmaker Directory β Examples of how to create 51 different types of visualizations in 31 different software packages, including Excel, Tableau, and R.
- R Graph Catalog β R code for 124 ggplot graphs.
- Emeryβs Essentials β Descriptions and examples of 26 different chart types.
Fonts
- Google Fonts β Huge collection of free, well-made fonts.
- The Ultimate Collection of Google Font Pairings β A list of great, well-designed font pairings from all those fonts hosted by Google (for when youβre looking for good contrasting or complementary fonts).
Mapping
- Spatial.ly Blog by James Cheshire
- Bivariate Chloropleth Maps
- Value-by-Alpha Maps
Other helpful data visualization resources
- Storytelling with Data β Blog and site full of resources by Cole Nussbaumer Knaflic.
- Ann K. Emeryβs blog β Blog and tutorials by Ann Emery.
- Evergreen Data β Helful resources by Stephanie Evergreen.
- PolicyViz β Regular podcast and site full of helpful resources by Jon Schwabisch.
- @HelpMeViz β Community of people who give advice on how to visualize data.
- Visualising Data β Fantastic collection of visualization resources, articles, and tutorials by Andy Kirk.
- Info We Trust β Detailed explorations of visualizations by RJ Andrews, including a beautiful visual history of the field.
- FlowingData β Blog by Nathan Yau.
- Information is Beautiful β Blog by David McCandless.
- Junk Charts β Blog by Kaiser Fung.
- WTF Visualizations β Visualizations that make you ask βWhat the Freak?β1
- The Data Visualization Checklist β A helpful set of criteria for grading the effectiveness of a graphic.
- Data Literacy Starter Kit β Compilation of resources to become data literate by Laura Calloway.
- Seeing Data β A series of research projects about perceptions and visualizations.
R Markdown
- “R Markdown: The Definitive Guide” β free online book π by Yihui Xie, J. J. Allaire, Garrett Grolemund
- “R Markdown Cookbook” β free online book π by Yihui Xie and Christophe Dervieux
- “R Markdown for Scientists” β free online book π by Nicholas Tierney
-
Advanced R Markdown Workshop - notes π from the advanced R markdown workshop at
rstudio::conf 2019
led by Alison Hill & Yihui Xie - “blogdown: Creating Websites with R Markdown” β free online book π by Yihui Xie, Amber Thomas & Alison Presmanes Hill
- “bookdown: Authoring Books and Technical Documents with R Markdown” β free online book π by Yihui Xie
- Advanced R Markdown workshop β materials from the rstudio::conf 2019 Advanced R Markdown workshop
- Introduction to R Markdown for Medicine β 4 hours workshop on R Markdown for Medicine: From Data to Manuscript by Alison Hill
- Sharing on Short Notice: How to Get Your Teaching Materials Online with R Markdown β slides π by Alison Hill & DesirΓ©e De Leon
- Summer of Blogdown β A week of blogdown for RStudio’s summer 2019
- Hugo - Static Site Generator β A complete course by Mike Dane
R Shiny Apps
- R Shiny Dashboard (Complete Tutorial) - YouTube πΊ Tutorials
- “Mastering Shiny” β free online book π by Hadley Wickham
- “Engineering Production-Grade Shiny Apps” β free online book π by Colin Fay, SΓ©bastien Rochette, Vincent Guyader & Cervan Girard
- A Gradual Introduction to Shiny β workshop by Ted Laderas & Jessica Minnier
- Learn Shiny β tutorials πΊ by RStudio
R Package Development
- “Mastering Software Development in R” β free online book π by Roger D. Peng, Sean Kross & Brooke Anderson
- “R Packages” β free online book π by Hadley Wickham
R Packages Tutorials
Tidymodels
- A Gentle Introduction to tidymodels β a blogpost by Edgar Ruiz
-
Exploring tidymodels With Hockey Data β a beginner-friendly guide to the
tidymodels
by Meghan Hall -
Predictive modeling in R with tidymodels and NFL attendance β a video tutorial πΊ on
tidymodels
using #TidyTuesday dataset by Julia Silge - Modelling with Tidymodels and Parsnip β a post by Diego Usai. If you can not access the post on the above link, click here
-
Modeling with
parsnip
andtidymodels
β a post by Benjamin Chang Sorensen -
Learn
tidymodels
- You can also learn
tidymodels
in your RStudio IDE with interactivelearnr
primers usinglearntidymodels
package. Follow the instructions here. - Tidymodels: tidy machine learning in R β a blogpost by Rebecca Barter
- Exploring Tidymodels
Interesting Personal Blogs
(Random Topics, Random Order π€·)
-
Chisato β colors & art with
{ggplot2}
-
Dominic Roye β mapping with
{ggplot2}
-
David Smale β
{shiny}
,{ggplot2}
and more - Andy Kirk β all about DataViz!
- MaΓ«lle Salmon β “goofing around with R”
-
David Robinson β data science using the
{tidyverse}
- Charlotte Robinson β data science
- Bruno Rodrigues β data science in R and Python
- James Cheshire β beautiful mapping
- Ilya Kashnitsky β maps & demography in R
- Hugo Toscano β data science in R
- Geoff Boeing β Python & GIS
- Our World in Data β “data on the worldβs largest problems”
- CΓ©dric Scherer β data visualization