6.5 Coefficient plots: Coloring

  • Figure 6.3 below provides a coefficient plot and colors estimations for subsets.
Coefficient plot: Coloring

Figure 6.3: Coefficient plot: Coloring

6.5.1 Lab: Data & code

The logic of estimating the models is the same as in the section [Coefficient plots: Facetting]. The only difference is that we use another variable namely Infant.Mortality_cat.

Plotting the data is straightforward again. We use the same code as above but now instead of facetting we simply specify colour = Infant.Mortality_cat within aes().