mosaicdata {ggplot} | R Documentation

## Mosaic data

### Description

Construct a data frame for producing a mosaic plot

### Usage

    mosaicdata(df, direction, offset, xrange=c(0,1), yrange=c(0,1))

### Arguments

`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

### Details

Take a data frame, with last column value and then recursively create a data frame that reflects the position of each cell

### Author(s)

Hadley Wickham <h.wickham@gmail.com>

### Examples

[Package ggplot version 0.2.2 Index]