Is there a way to enable the panel for unused levels of the factor used in the cut?
The reason I want to do this is because I arrange several separate graphs in rows showing different measures, with each row having the same number of panels facet_gridin columns. Each chart must contain a column.
But when the data for one of the rows does not contain data for a certain level of the face, the number of panels will be different, and the columns will not line up. For example, note that the "Mathematics II" panel is missing on the last line:
Example plot http://dl.dropbox.com/u/14792859/ggplot2%20facet%20levels.png
The only thing I can think of is to include a dummy data point for any missing facet levels, but I would like to hear that there is a simpler / cleaner way.
source
share