Data visualization with ggplot2
Slides in full screen | Download PDF slides
Exercises
Go to Task 1: Exploratory plots and Task 2: Beautify & save for the exercises.
Resources
- ggplot2 documentation: The official documentation for ggplot2, with examples and tutorials.
- ggplot2 cookbook: Practical guide for creating a wide variety of plots with ggplot2, with lots of examples and code snippets.
- Great ggplot2 tutorial by Cédric Scherer: A comprehensive tutorial on ggplot2, covering all the basics and more advanced topics.
- A very comprehensive YouTube webinar on ggplot starting from the basics (by one of the package developpers)
- A list of ggplot extension packages: These packages extend ggplot2 with new geoms, themes, and other features. You can find extensions for all kinds of things, from new types of plots to ways to make your plots interactive.
- My personal favorite is the patchwork package: A package for combining multiple ggplot2 plots into one multi-panel figure. It’s very useful for publication-quality figures and it’s super easy to use.
- ggplot2 cheat sheet: A reference for ggplot2 functions, geoms etc. Great to see all options you have in one place.