mosaicdata {ggplot} | R Documentation |
Construct a data frame for producing a mosaic plot
mosaicdata(df, direction, offset, xrange=c(0,1), yrange=c(0,1))
df |
data frame, with values in last column |
direction |
character vector of direction ("v" or "h") to split in |
offset |
vector of offsets to use |
xrange |
xrange |
yrange |
yrange |
Take a data frame, with last column value and then recursively create a data frame that reflects the position of each cell
Hadley Wickham <h.wickham@gmail.com>