R Data Visualization Recipes
上QQ阅读APP看书,第一时间看更新

Plotting a Discrete Predictor and a Continuous Response

In this 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, and ggplot2
  • 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