Course Material

Links to lecture slides, YouTube videos and other resources are all available on this page. You’ll probably notice that some of the resources for the first few weeks refer to the class as “robust tools”, which was the name of class that I ran for my honours elective in 2020. The 2021 class partially overlaps with that class, so some material is reused.

Weeks 1-2

The first section of the class provides an introduction to data visualisation in R using the ggplot2 package. It is also assumed to be the first contact a student has with R, so it covers a lot of the introductory topics like “what is an R commmand?", “how do I write a script?” and so on. It is designed so that you can do it without me: open up the slides and the RStudio Cloud project (both linked below) and then watch the YouTube videos; these will direct you to various hands on exercises you can do within the RStudio Cloud project.


Week 3

The next part of the class is a bridging section. It introduces a data set (the reasoning data) that I’ll use later in the class, discusses reading data from and writing data to a CSV file, and introduces the pipe. Much of this section is devoted to a discussion of calculating “grouped summaries”.


Weeks 4-5

The third section in the class provides an introduction to data wrangling in R, mostly focusing on dplyr. Topics covered include: extracting a subset of the data, rearranging the data, computing new variables in a data set, merging multiple data sets, and pivoting data between “long” and “wide” forms.


Weeks 6-8

The plan for weeks 6-8 is for you to explore the world of data visualisation by heading along your own path. Some free resources you might find very useful. First, two books on data visualisation:

Some general purpose resources:

Some R packages that you might like to explore:

That being said, there is a huge ecosystem of packages out there that are built on top of ggplot2, so if there’s something you’d like to try doing, it’s worth googling around to see what you can find, and if you can’t find anything let me know and I’ll see if I can find it!

A general strategy for doing this kind of exploration (which you don’t have to follow) is to start out by finding a fun data set that you want to play around with, and then try to find the tools that would let you draw the awesomest graphic you can think of to make sense of the data!

Most importantly… please feel free to message me on slack with ideas, suggestions, or questions! It’s what I’m here for 😄

Week 9

Details TBA