Get startedGet started for free

Exercise 17. Histograms 2

Now we are ready to add a layer to actually make the histogram.

This exercise is part of the course

Data Science Visualization - Module 2

View Course

Exercise instructions

Add a layer to the object p (created in the previous exercise) using the geom_histogram function to make the histogram.

Hands-on interactive exercise

Have a go at this exercise by completing this sample code.

p <- heights %>% 
  ggplot(aes(height))
## add a layer to p
Edit and Run Code