Session Ready
Exercise

Customizing axis annotation

Some other useful sub-components of the scales argument are:

  • tick.number: approximate number of tick marks / labels.

  • alternating: 1 puts labels on the left/bottom boundary, 2 on the right/top, and 3 on both sides. The value can be a vector, in which case it applies row-wise or column-wise.

  • rot: angle in degrees to rotate axis labels. *

Instructions
100 XP

The USMortality dataset has been pre-loaded.

Modify the following call so that

  • The number of tick marks for Rate is approximately doubled at 10 marks.

  • The Rate labels are shown on both bottom and top for both columns.

  • The Rate labels are rotated by 90 degrees.

  • The Cause labels are rotated by 45 degrees.