## 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),
col = rainbow_hcl(tail(dim(x), 1), end = 260),
labeling = labeling_doubledecker,
spacing = spacing_doubledecker,
main = NULL, keep_aspect_ratio = FALSE, ...)data. The dependent variable is used
last for splitting."table"
or "ftable".dimnames(x) attribute.strucplot for details).strucplot for details).main is TRUE, the
name of the data object is used.mosaic."structable" visualized is returned invisibly.strucplot,
mosaicdoubledecker(Titanic)
doubledecker(Titanic, depvar = "Survived")
doubledecker(Survived ~ ., data = Titanic)Run the code above in your browser using DataLab