Session Ready
Exercise

Visualizing one year of mortality data

Now that you have some feeling with the 1999 life table, you can illustrate the evolution in female mortality rates \(q_x\) as a function of age \(x\). Cynthia's teacher usually plots the log of the mortality rates in his lecture sheets. Can you convince her that this is indeed a good approach?

The object life_table as well as the vectors age and qx defined in the previous exercise have been preloaded.

Instructions
100 XP
  • plot() the mortality rates for females in 1999. The first argument has to be the age and the second has to be the mortality rates qx.
  • Use a second call to plot() to display the mortality rates for females in 1999 on the logarithmic scale. Compared to the previous command, you have to transform the second argument by first taking the log().