"doubledecker"(formula, data = NULL, ..., main = NULL)
"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
vcd.
Journal of Statistical Software, 17(3), 1-48.
URL http://www.jstatsoft.org/v17/i03/ and available as
vignette("strucplot")
.
strucplot
,
mosaic
data("Titanic")
doubledecker(Titanic)
doubledecker(Titanic, depvar = "Survived")
doubledecker(Survived ~ ., data = Titanic)
Run the code above in your browser using DataLab