In this one-day hands-on workshop, we’re going to have a close look at ggplot2, a widely used R package that implements the so-called grammar of graphics. Its concise and consistent syntax allows you to create high-quality data visualisations in a quick and iterative manner that are suitable for both exploration and communication.
This workshop assumes no prior knowledge of R, as we’ll introduce the bare necessities in order to effectively use ggplot2. If the participants are already familiar with the fundamentals of R and RStudio then we can of course skip that and spend more time on advanced topics.
By the end of this workshop you’ll have a solid understanding of the grammar of graphics and how to create data visualisations in R for your daily work. But beware: there’s a good chance you will want to learn more about R.
- Introduction to R and RStudio
- Motivating examples of ggplot2
- Just enough R to work with ggplot2
- Assignment, variables, expressions
- Atomic vectors, numbers, factors, strings, dates
- Data frames, long versus wide
- Loading data
- A layered grammar of graphics
- Aesthetics and geometries
- Scales and coordinate systems
- Labels and themes
- Implementing your house style as a theme
- Noteworthy extensions of ggplot2
- Network visualisations
- Where to go from here?
Participants are kindly requested to have the following items installed prior to the start of the workshop:
- R version 3.4 or later
- RStudio v1.1 or later
- The latest versions of the following R packages, by running:
install.packages(c("tidyverse", "ggrepel"), dependencies = TRUE)
No prior knowledge of R and ggplot2 is required for this workshop as we’ll introduce the bare necessities.
We have previously delivered this workshop (or a custom training based on this workshop) at the following organisations: