Learn R Programming

productplots

Installation

You can install productplots from github with:

# install.packages("devtools")
devtools::install_github("hadley/productplots")

Copy Link

Version

Install

install.packages('productplots')

Monthly Downloads

15,130

Version

0.1.2

License

GPL-2

Issues

Pull Requests

Stars

Forks

Maintainer

Hadley Wickham

Last Published

October 27th, 2025

Functions in productplots (0.1.2)

vbar

Vertical bar partition: height constant, width varies.
hspine

Horizontal spine partition: height constant, width varies.
scale_y_product

Generate a y-scale for ggplot2 graphics.
tile

Tree map partitioning.
stacked

Template for a stacked bar chart. A stacked bar chart starts with a bar and then continues with spines in the opposite direction.
row_labels

Calculate row labels.
vspine

Vertical spine partition: width constant, height varies.
mosaic

Template for a mosaic plot. A mosaic plot is composed of spines in alternating directions.
nested

Template for a nested barchart. A nested bar is just a sequence of bars in the same direction.
parse_product_formula

Parse product formula into component pieces
prodcalc

Calculate frequencies.
hbar

Horizontal bar partition: width constant, height varies.
fluct

Fluctation partitioning.
find_col_level

Find the first level which has columns.
find_row_level

Find the first level which has rows.
ddecker

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.
flucts

Template for a fluctuation diagram.
spine

Spine partition: divide longest dimesion.
scale_x_product

Generate an x-scale for ggplot2 graphics.
prodplot

Create a product plot
happy

Data related to happiness from the general social survey.
col_labels

Calculate column labels.
colour_weight

For ggplot2: colour by weight.
colour_level

For ggplot2: colour by weight.