Creating a ggplot: ggplot()

  • Call ggplot() function.
  • Arguments:
    • data to use
    • how to map them to aesthetics
ggplot(
  data = penguins,
  mapping = aes(x = flipper_length_mm, y = body_mass_g)
)