Chapter 6 Boxplot

You should use this method if the data is:

  • Categorical (at least ordinal) or
  • Numerical

In this chapter you will learn how to do some simple data explorations for categorical (ordinal) and numerical variables using boxplots.

6.1 One variable

wage_df %>% 
  ggplot(aes( x = "", y= wage)) + 
  geom_boxplot() 

6.2 Two variables

wage_df %>% 
  ggplot(aes(x = education, y = wage)) + 
  geom_boxplot()