Session Ready
Exercise

Visualizing the Adjusted Demographic Trends

Let's compare changes in borrowing across demographics over time. The data frame rydf you created in the last exercise is available in your workspace.

Note: We removed the row corresponding to "Not Avail".

Instructions
100 XP

tidyr and ggplot2 are loaded in your workspace.

  • Print the rydf and pop_proportion objects.
  • Convert rydf to a long-formatted data frame by gathering all columns except Race.
  • Create a line chart with Year and Adjusted_Count on the x and y axes, respectively.