Histograms
This exercise will explore using the geom_histogram()
geometric object to create a histogram of abalone shellWeight
with custom colors for the bin line and fill colors and custom axis labels and title. Remember to first load the ggplot2
package to access these functions.
The abalone
dataset and dplyr
package have been loaded for you.
This exercise is part of the course
R For SAS Users
Hands-on interactive exercise
Have a go at this exercise by completing this sample code.
# Load ggplot2 package
library(___)
# Make a histogram of shellWeight for the abalones
ggplot(___, aes(___)) +
___