Learn R Programming

descr (version 1.0.0)

plot.CrossTable: Mosaic plot from object of class CrossTable

Description

This function receives a CrossTable object as its main argument and produces a mosaicplot.

Usage

## S3 method for class 'CrossTable':
plot(x, xlab, ylab, main = "", col,
           inv.x = FALSE, inv.y = FALSE, \dots)

Arguments

x
A object of class CrossTable.
xlab
ylab
main
col
A specification for the default plotting color. (See section Color Specification of par).
inv.x
A logical value indicating whether the order of the levels of the x variable should be inverted.
inv.y
A logical value indicating whether the order of the levels of the y variable should be inverted.
...
Further arguments to be passed to mosaicplot.

See Also

CrossTable, crosstab.