Prepare
Due: August 28th
prepare
These sections will walk through how to plot data using ggplot()
! The exercises are optional. We will practice with these functions in class together.
Note: The following code used in the book
ggplot(
data = penguins,
mapping = aes(x = flipper_length_mm, y = body_mass_g)
)
Can be equally represented by the following
penguins |>
ggplot(
mapping = aes(x = flipper_length_mm, y = body_mass_g)
)
We showed this with the glimpse()
function in-class, and practiced piping in data sets into a function on Monday. You may create data visualizations using either strategy. Whichever is more intuitive to you!