11.3 Box Plot

To graph a basic box plot, we use geom_boxplot():

diamonds %>% 
  group_by(clarity, cut) %>% 
  ggplot(aes(x = clarity, y = price, group = cut, fill = cut)) +
  geom_boxplot()