Chapter 3. Plotting a Discrete Predictor and a Continuous Response
Inthis chapter, we will cover the following recipes:
- Installing the car package and getting familiar with data
- Drawing simple box plots
- Adding notches and jitters to box plots
- Drawing bivariate dot plots using
ggplot2
- Using more suitable colors for
geom_dotplot
- Combining box with dot plots
- Using point geometry to work as dots using
ggvis
,plotly
, andggplot2
- Crafting simple violin plots
- Using
stat_summary
to customize violin plots - Manually sorting and coloring violins
- Using the
ggjoy
package to replace violins - Creating publication quality violin plots