5.5 Numeric vs. categorical: Various plot types

5.5.1 Data & Packages & functions

5.5.2 Graph

  • Figure 5.9 visualizes different ways of plotting a categorical vs. a numerical variable.
  • Questions:
    • What does the graph show? What are the underlying variables (and data)?
    • How many scales/mappings does it use? Could we reduce them?
    • What do you like, what do you dislike about the figure? What is good, what is bad?
    • What kind of information could we add to the graph (if any)?
    • How would you approach a replication of the graph?
## Parsed with column specification:
## cols(
##   screen_name = col_character(),
##   n_retweets = col_double(),
##   followers_count = col_double(),
##   party = col_character(),
##   party_color = col_character(),
##   first_name = col_character(),
##   account_created_at = col_datetime(format = ""),
##   account_age_months = col_double(),
##   account_age_years = col_double(),
##   last_name = col_character(),
##   female = col_double()
## )
Boxplots and jittered points

Figure 5.9: Boxplots and jittered points