## S3 method for class 'formula':
doubledecker(formula, data = NULL, \dots, main = NULL)
## S3 method for class 'default':
doubledecker(x, depvar = length(dim(x)),
margins = c(1,4, length(dim(x)) + 1, 1),
gp = gpar(fill = rev(gray.colors(tail(dim(x), 1)))),
labeling = labeling_doubledecker,
spacing = spacing_highlighting,
main = NULL, keep_aspect_ratio = FALSE, ...)data. The dependent variable is used
last for splitting."table"
or "ftable".dimnames(x) attribute."gpar" used for the tiles of the last variable.strucplot for details).strucplot for details).main is TRUE, the
name of the data object is used.mosaic."structable" visualized is returned invisibly. Meyer, D., Zeileis, A., and Hornik, K. (2006),
The strucplot framework: Visualizing multi-way contingency tables with
vignette("strucplot").
strucplot,
mosaicdata("Titanic")
doubledecker(Titanic)
doubledecker(Titanic, depvar = "Survived")
doubledecker(Survived ~ ., data = Titanic)Run the code above in your browser using DataLab