Product Plots for R
Create a product plot
Calculate row labels.
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 ba...
Tree map partitioning.
Vertical bar partition: height constant, width varies.
Vertical spine partition: width constant, height varies.
Calculate column labels.
For ggplot2: colour by weight.
For ggplot2: colour by weight.
Template for a double decker plot. A double decker plot is composed of...
Find the first level which has columns.
Find the first level which has rows.
Fluctation partitioning.
Template for a fluctuation diagram.
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 alt...
Template for a nested barchart. A nested bar is just a sequence of bar...
Parse product formula into component pieces
Calculate frequencies.
Framework for visualising tables of counts, proportions and probabilities. The framework is called product plots, alluding to the computation of area as a product of height and width, and the statistical concept of generating a joint distribution from the product of conditional and marginal distributions. The framework, with extensions, is sufficient to encompass over 20 visualisations previously described in fields of statistical graphics and 'infovis', including bar charts, mosaic plots, 'treemaps', equal area plots and fluctuation diagrams.