Visual Data Communication
Designing figures with purpose in R and Python
Welcome
Before

After

By the end of this course you will be able to make changes like this one, in R or Python, and explain every decision.
Overview
A good figure lets someone understand your result in seconds. A poor one hides it, misleads, or simply gets skipped. This course teaches you to design figures with a purpose, and to build them in R (with ggplot2) or Python (with plotnine).
We start from the message and the audience, not the software. You will learn how to choose a chart that fits your question, how to use colour, ordering and labelling to direct attention, and how to produce figures that are honest, accessible and reproducible.
- Distinguish between figures for exploring data and figures for explaining it.
- Choose a chart type that fits your question and your audience.
- Use colour, ordering and labelling to direct attention to your message.
- Build, refine and export figures in layers using ggplot2 or plotnine.
- Critique any figure using five simple questions.
Course map
The materials follow the same path as a figure: understand the data, design for the reader, then finish the figure properly.
How to use these materials
Every code example is available in R and Python. Use the tabs above each code block to switch; your choice is remembered across pages.
Each chapter has the same structure:
- Learning objectives at the top, so you know where you are heading.
- Short explanations with worked examples you can copy and run.
- Exercises marked by level, from one star (getting started) to three stars (more challenging).
- Sections marked Core are needed for later chapters. Sections marked Extension are optional, for when you finish early or want to go further.
- Key points at the end, for quick revision.
Ways this course is taught
| Format | What happens | Materials used |
|---|---|---|
| Half-day course | Talks and small group discussion of design principles | Slides; this site for further practice |
| Full-day course | Short talks alternating with four practical sessions | Slides and every chapter of this site |
| Workshop (3 hours) | A talk, peer feedback on your own figures, then a makeover sprint | Slides, the checklist and recipes |
The materials also work for self-study. Start with The design process, then work through the chapters in order.
Target audience
Researchers at any stage who need to communicate data: PhD students, postdocs and staff, from any discipline. The examples use social, health and biological data so that nobody needs specialist knowledge to follow them.
Prerequisites
A basic working knowledge of either R or Python: you should be able to read a data file and run a few lines of code. If you are new to programming, CRIT runs introductory courses in both languages several times a year; see the course timetable.
Data
The course uses three openly available datasets:
- Palmer penguins: body measurements for three penguin species (Horst et al. 2020).
- Gapminder: socioeconomic and health indicators by country, 1960 to 2010 (Gapminder Foundation 2024).
- Darwin’s finches: beak and body measurements from the Galápagos, from the earlier version of this course.



