The R package ggplot2 is a reliable and powerful tool for graphics and plotting scientific data. This tutorial will cover the theory behind ggplot2’s approach to visualization. We will cover the general flow of building a plot, mapping aesthetics, adding layers, and manipulating scales, facets, and coordinates. After this tutorial, you will be able to navigate the ggplot2 package with an understanding of how to design visualizations from data frames versus vectors (as in base R graphics) for elegant and professional illustrations of data. Documentation and alternative resources are included to help you continue developing in ggplot2 on your own after the tutorial.
Prerequisite: If you are new to the R environment we strongly recommend that you also register for the “Introduction to R” tutorial.