Exercise

Bar plots of survey-weighted means

Let's return to the dataframe of the average sleep per night by gender, which we created in Exercise 3.2. I have saved the dataframe as out in the code chunk. It's time to graph these data!

Instructions

100 XP
  • Using geom_col(), construct a barplot where Gender is mapped to x and SleepHrsNight to y.
  • Label the y axis with "Average Nightly Sleep".