Session Ready
Exercise

The as.table argument

In a conditioned lattice plot, the panels are by default drawn starting from the bottom-left position, going right and then up. This is patterned on the Cartesian coordinate system where the x-axis increases to the right and the y-axis increases from bottom to top.

Often we want to change this so that the layout is similar to a matrix or table, where rows start at the top. The layout of any conditioned lattice plot can be changed to follow this scheme by adding the optional argument as.table = TRUE.

Your task in this exercise is to modify the plot obtained in the previous exercise so that its panels are ordered like a table.

Instructions
100 XP

The USCancerRates dataset, along with the additional variables division and division.ordered, has been pre-loaded in your workspace.

Add the as.table argument to the sample code so that levels of division.ordered start from the top-left cell in the conditioned plot.