8.2 Working with Sample Data

Before we attempt to handle your unique dataset, let’s first get some graphing practice with sample data. In these examples, I will be using the built-in datasets that R should have available to you. As a refresher, a built-in dataset is a free, accessible dataset that R provides to all users. Sometimes, these built-in datasets are built into base R (i.e., no libraries need to be loaded for them to work). Other times, these built-in datasets are built into specific packages (i.e., requires specific libraries). Many of the built-in datasets I use originate from base R and packages from tidyverse. As long as you make sure that you load tidyverse at the beginning of each session, you should have access to the built-in datasets that are used in the examples.