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.
Author  Hadley Wickham [aut, cre], Heike Hofmann [aut] 
Date of publication  20160702 07:38:04 
Maintainer  Hadley Wickham <hadley@rstudio.com> 
License  GPL2 
Version  0.1.1 
URL  https://github.com/hadley/productplots 
Package repository  View on CRAN 
Installation  Install the latest version of this package by entering the following in R:



All man pages Function index File listing
Man pages  

col_labels: Calculate column labels.  
colour_level: For ggplot2: colour by weight.  
colour_weight: For ggplot2: colour by weight.  
ddecker: Template for a double decker plot. A double decker plot is...  
find_col_level: Find the first level which has columns.  
find_row_level: Find the first level which has rows.  
fluct: Fluctation partitioning.  
flucts: Template for a fluctuation diagram.  
happy: Data related to happiness from the general social survey.  
hbar: Horizontal bar partition: width constant, height varies.  
hspine: Horizontal spine partition: height constant, width varies.  
mosaic: Template for a mosaic plot. A mosaic plot is composed of...  
nested: Template for a nested barchart. A nested bar is just a...  
parse_product_formula: Parse product formula into component pieces  
prodcalc: Calculate frequencies.  
prodplot: Create a product plot  
row_labels: Calculate row labels.  
scale_x_product: Generate an xscale for ggplot2 graphics.  
scale_y_product: Generate a yscale for ggplot2 graphics.  
spine: Spine partition: divide longest dimesion.  
stacked: Template for a stacked bar chart. A stacked bar chart starts...  
tile: Tree map partitioning.  
vbar: Vertical bar partition: height constant, width varies.  
vspine: Vertical spine partition: width constant, height varies. 
Functions  

add_area  Source code 
bound  Source code 
col_labels  Man page Source code 
colour_level  Man page Source code 
colour_weight  Man page Source code 
cv  Source code 
ddecker  Man page Source code 
divide  Source code 
divide_once  Source code 
draw  Source code 
find_col_level  Man page Source code 
find_row_level  Man page Source code 
fluct  Man page Source code 
flucts  Man page Source code 
happy  Man page 
has_cols  Source code 
has_rows  Source code 
hbar  Man page Source code 
hspine  Man page Source code 
is.binary.op  Source code 
lhs  Source code 
margin  Source code 
mosaic  Man page Source code 
nested  Man page Source code 
normAspect  Source code 
op  Source code 
parse_product_formula  Man page Source code 
partd  Source code 
prodcalc  Man page Source code 
prodplot  Man page Source code 
prop  Source code 
rhs  Source code 
rotate  Source code 
row_labels  Man page Source code 
scale_x_product  Man page Source code 
scale_y_product  Man page Source code 
set_offset  Source code 
spine  Man page Source code 
squeeze  Source code 
stacked  Man page Source code 
tile  Man page Source code 
uniquecols  Source code 
vbar  Man page Source code 
vspine  Man page Source code 
weighted.table  Source code 
Files  

tests
 
tests/testthat.R  
tests/testthat
 
tests/testthat/testdivision.r  
tests/testthat/helperdivision.r  
tests/testthat/testlabels.r  
tests/testthat/testplotting.r  
NAMESPACE
 
data
 
data/happy.rda
 
R
 
R/productplots.r  
R/plot.r  
R/partitiontile.r  
R/calculate.r  
R/utils.r  
R/divide.r  
R/partition.r  
R/partition2d.r  
R/parse.r  
R/margin.r  
R/templates.r  
R/labels.r  
R/partition1d.r  
README.md  
MD5
 
DESCRIPTION
 
man
 
man/happy.Rd  
man/vbar.Rd  
man/find_row_level.Rd  
man/scale_y_product.Rd  
man/find_col_level.Rd  
man/parse_product_formula.Rd  
man/col_labels.Rd  
man/tile.Rd  
man/vspine.Rd  
man/nested.Rd  
man/stacked.Rd  
man/flucts.Rd  
man/colour_level.Rd  
man/ddecker.Rd  
man/hbar.Rd  
man/colour_weight.Rd  
man/prodcalc.Rd  
man/fluct.Rd  
man/mosaic.Rd  
man/spine.Rd  
man/scale_x_product.Rd  
man/row_labels.Rd  
man/prodplot.Rd  
man/hspine.Rd 
Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.
Please suggest features or report bugs in the GitHub issue tracker.
All documentation is copyright its authors; we didn't write any of that.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.