1 Welcome!

Welcome to the fourth S2S lab. This lab will teach you how to plot data sets in R, specifically following Sections 2.3 and 2.4 of Probability and Statistics with R. You will learn some of the appropriate ways to display different types of data and how to create these graphs and plots with your own code.

There are two ways plots or graphs are commonly created in R, and that is either using base R functions (ones which are automatically built into the R software) or using a specific package for creating graphs called ggplot2. This lab introduces both of these methods.

By the end of this lab you will be able to create your own plots of data from scratch, and replicate detailed graphs as well.