AE 02: Penguin peekaboo

Author

Your Name

For this application exercise, we’ll use the tidyverse and palmerpenguins packages.

── Attaching core tidyverse packages ──────────────────────── tidyverse 2.0.0 ──
✔ dplyr     1.2.1     ✔ readr     2.2.0
✔ forcats   1.0.1     ✔ stringr   1.6.0
✔ ggplot2   4.0.3     ✔ tibble    3.3.1
✔ lubridate 1.9.5     ✔ tidyr     1.3.2
✔ purrr     1.2.2     
── Conflicts ────────────────────────────────────────── tidyverse_conflicts() ──
✖ dplyr::filter() masks stats::filter()
✖ dplyr::lag()    masks stats::lag()
ℹ Use the conflicted package (<http://conflicted.r-lib.org/>) to force all conflicts to become errors

We will again be working with the penguins dataset for this application exercise. Let’s glimpse() at the dataset to remind ourselves of what data we have at our fingertips.

# add code here

Task 1

In the code chunk below, plot a histogram of the body mass of the penguins. Let’s also facet by island:

Note

All plots created in this course must be properly labeled (i.e., human readable labels)! This means both x- and y-axes (when appropriate) and an informative but concise title! Double check your rendered document to ensure your plot labels are fully visible.

# add code here

Task 2

In the code chunk below, plot a scatterplot with body mass on the horizontal and flipper length on the vertical, colored by species:

# add code here