Kelvin Smith Library
KSL has a series of Digital Scholarship Workshops every semester. FInd information and sign up in campus groups.
This is not a standalone resource. This document contains code samples for pasting into .rmd files during the workshop.
Code samples for Workshop
More complete tutorial resources will be coming soon!
R is a free software environment for statistical computing and graphics. It utilizes a library of thousands of packages for a wide variety of statistical and data visualization purposes. There is a strong interdisciplinary user community.
RStudio is a free IDE for R that provides tools for plotting, history, and workspace management. We recommend that you install RStudio alongside R from the beginning as it greatly reduces the learning curve.
If you are new to R, start with the tidyverse.
The tidyverse - https://www.tidyverse.org/ - is a collection of R packages for data science. The packages are designed to work together through the entire data lifecycle, from discovery to communication of conclusions. The visualization elements are based on the influential Grammar of Graphics by Leland Wilkinson.
The R for Data Science online textbook (2017) https://r4ds.had.co.nz/ is the recommend textbook for learning about R and the tidyverse. This is a complete and free course. There is also a work-in-progress 2nd edition (2023) - https://r4ds.hadley.nz/
Posit hosts a complete set of cheatsheets for the tidyverse. https://posit.co/resources/cheatsheets/
ggplot2 is a longtime fixture in R when it comes to data visualization, and a piece of the tidyverse. There is also a complete course in an online ebook for ggplot.
ggplot2: Elegant Graphics for Data Analysis by Hadley Wickham, Danielle Navarro, and Thomas Lin Pedersen https://ggplot2-book.org/