Dataset

Going forward we’ll use a sample dataset to illustrate more graphs and ways to alter them. The dataset comes from a package called {palmerpenguins} and the dataframe itself is called penguins. To use it we will first need to ensure that we load the {palmerpenguins} library. If you are coding in your own file and not just in this web doc, you may need to first install the package by using the command install.packages(“palmerpenguins”).

This is a package made by Allison Horst that contains real data from penguin measurements collected by Kristen Gorman and illustrated by Alison Hill. It contains measurements for three penguin species (Adelie, Chinstrap, and Gentoo) from three different islands over three years. We can view a little of the data with the following code. I suggest highlighting each line and running it separately with control/command + enter.