Template for a double decker plot. A double decker plot is composed of a sequence of spines in the same direction, with the final spine in the opposite direction.
Data related to happiness from the general social survey.
Horizontal bar partition: width constant, height varies.
Horizontal spine partition: height constant, width varies.
Template for a mosaic plot. A mosaic plot is composed of spines in alternating directions.
Template for a nested barchart. A nested bar is just a sequence of bars in the same direction.
Parse product formula into component pieces
Generate an x-scale for ggplot2 graphics.
Generate a y-scale for ggplot2 graphics.
Spine partition: divide longest dimesion.
Template for a stacked bar chart. A stacked bar chart starts with a bar and then continues with spines in the opposite direction.
Vertical bar partition: height constant, width varies.
Vertical spine partition: width constant, height varies.