R Intro - Visualization with ggplot2 (Fall 2023)
R is an open-source programming language for statistical computing and graphics. R is extensible, and has a large collection of high-quality user contributed packages that provides easy tools for common data analysis tasks.
In this workshop we will learn ggplot2, a powerful R package for visualization.
“ggplot2 is a system for declaratively creating graphics, based on The Grammar of Graphics. You provide the data, tell ggplot2 how to map variables to aesthetics, what graphical primitives to use, and it takes care of the details.” – ggplot2 document
What To Prepare
Please install R and RStudio Desktop before the first session.
If you encounter technical difficulties installing the software, you can instead create a free RStudio Cloud account so you can run R in the cloud via your browser.
An alternative to RStudio Cloud is the UofT JupyterHub/RStudio system. Go to its home page, choose the RStudio option, and click Log in to start. You will need your UTORid to login.
Workshop Materials
- Slide
- Notebook:
- Reading: Section Visualize (Chapter 10, 11, and 12) in R for Data Science (2e)
Resources
- Learning
- R Graphics Cookbook
- ggplot2: Elegant Graphics for Data Analysis
- The R Graph Gallery
- ggplot2 Cheat Sheets (cheat sheets for many popular R packages)
- Inspiration
- Tanya Shapiro’s GitHub Gallery
- Fronkonstin
- Data Imaginist
Back to TDMDAL Computing Page