Exercise

Exercise 2: Customizing plots - redefining

Now we are going to customize this plot a little more by creating a rate variable and reordering by that variable instead.

Instructions

100 XP
  • Add a single line of code to the definition of the dat table that uses mutate to reorder the states by the rate variable.
  • The sample code provided will then create a bar plot using the newly defined dat.