Trends instructional staff employees in universities

Application exercise

The American Association of University Professors (AAUP) is a nonprofit membership association of faculty and other academic professionals. This report by the AAUP shows trends in instructional staff employees between 1975 and 2011, and contains the following image. What trends are apparent in this visualization?

Packages

library(tidyverse)
library(scales)
library(ggthemes)

Data

Each row in this dataset represents a faculty type, and the columns are the years for which we have data. The values are percentage of hires of that type of faculty for each year.

staff <- read_csv("data/instructional-staff.csv")
staff
# A tibble: 5 × 12
  facult…¹ `1975` `1989` `1993` `1995` `1999` `2001` `2003` `2005` `2007` `2009`
  <chr>     <dbl>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>  <dbl>
1 Full-Ti…   29     27.6   25     24.8   21.8   20.3   19.3   17.8   17.2   16.8
2 Full-Ti…   16.1   11.4   10.2    9.6    8.9    9.2    8.8    8.2    8      7.6
3 Full-Ti…   10.3   14.1   13.6   13.6   15.2   15.5   15     14.8   14.9   15.1
4 Part-Ti…   24     30.4   33.1   33.2   35.5   36     37     39.3   40.5   41.1
5 Graduat…   20.5   16.5   18.1   18.8   18.7   19     20     19.9   19.5   19.4
# … with 1 more variable: `2011` <dbl>, and abbreviated variable name
#   ¹​faculty_type

Recreate

  • Your turn (10 minutes): Recreate the visualization above. Try to match as many of the elements as possible. Hint: You might need to reshape your data first.
# add code here
# add code here

Represent percentages as parts of a whole

  • Demo: Recreate the previous visualization where the percentages are represented as parts of a whole.
# add code here

Place time on x-axis

  • Demo: Convert the visualization to a line plot with time on the x-axis.
# add code here

Pay attention to variable types

  • Question: What is wrong with the x-axis of the plot above? How can you fix it?

Add response here.

  • Your turn: Implement the fix for the x-axis of the plot.
# add code here

Use an accessible color scale

  • Question: What do we mean by an accessible color scale? What types of color vision deficiencies are there?

Add response here.

  • Demo: What does the plot look like to people with various color vision deficiencies?

  • Demo: Remake the plot with an accessible color scale.

# add code here

Use direct labeling

  • Demo: Remove the legend and add labels for each line at the end of the line (where x is the max(x) recorded).
# add code here

Use color to draw attention

  • Demo: Redo the line plot where Part-time Faculty is red and the rest are gray.
# label: recode

# add code here
# add code here

Pick a purpose

# add code here

Use labels to communicate the message

# add code here

Simplify

# add code here

Summary

  • Represent percentages as parts of a whole
  • Place variables representing time on the x-axis when possible
  • Pay attention to data types, e.g., represent time as time on a continuous scale, not years as levels of a categorical variable
  • Prefer direct labeling over legends
  • Use accessible colors
  • Use color to draw attention
  • Pick a purpose and label, color, annotate for that purpose
  • Communicate your main message directly in the plot labels
  • Simplify before you call it done (a.k.a. “Before you leave the house, look in the mirror and take one thing off”)