mdf {ggplot} | R Documentation

## Mosaic plot

### Description

### Usage

    mdf(formula=~., df, direction, offset, xrange=c(0,1), yrange=c(0,1))

### Arguments

`formula` |
`df` |
`direction` |
`offset` |
`xrange` |
`yrange` |

### Details

### Author(s)

Hadley Wickham <h.wickham@gmail.com>

### Examples

    library(grid)
    tt <- as.data.frame(Titanic)
    mdf(~ Class, tt)  # counts
    mdf(Freq ~ Class, tt) # with a weighting variable
    mdf(Freq ~ Class + Sex + Age, tt)
    mdf(Freq ~ Class + Sex + Age, tt, direction=c("v","h","v"))

[Package ggplot version 0.2.2 Index]