Learn R Programming

iplots (version 1.1-8)

imosaic: Interactive Mosaic Plot

Description

This function creates a new interactive mosaic plot from the given data.

Usage

imosaic(...)

Arguments

...

All unnamed parameters are treated as variables to display. Additional parameters are passed to iplot.opt. The parameter "type" selects the variation of the mosaic plot. Valid values are "observed", "expected", "fluctuation", "same.bin.size" and "multiple.barchart". Partial matching is used, so first letter is sufficient.

Value

Resulting plot object.

Details

The plot can be used either in the form imosaic(df) to plot a list or data frame of variables contained in df or imosaic(x, y, z) to plot variables x, y and z.

Additional parameters:

rotateYLabelsBy

The default value of this variable is changed here. For a description see iplot.opt.

See Also

ihist, ibar, iplot.list, iplot.opt

Examples

Run this code
# NOT RUN {
library(MASS)
data(Cars93)
attach(Cars93)
imosaic(AirBags,Cylinders,Origin)
imosaic(AirBags,Cylinders,Origin,type="mul")
iplot.location(300,100,TRUE)
# }

Run the code above in your browser using DataLab