Session Ready
Exercise

Comparing lots of distributions

Let's revisit the faceted plot we made before, but now with our handy new techniques. Can we get a better handle on the relationships with our new plot types?

The supplied code makes the same visualization you did in the last lesson. Change the code to use violin plots to display the density instead of jitter plots to draw the individual data. Like in the last exercise, shrink the boxplot width so they mostly sit within the violin plots. Last, don't forget to add a subtitle to the plot telling the viewer the width of your violin plot kernels!

Instructions
100 XP
  • Replace geom_jitter() with geom_violin().
  • Set fill = 'steelblue' and kernel standard deviation of 2.5 for the violin geometry.
  • Shrink geom_boxplot() width by setting it to 0.3.
  • Add the subtitle Gaussian kernel width: 2.5'.