## S3 method for class 'formula':
structable(formula, data,
direction = NULL, split_vertical = FALSE, \dots, subset, na.action)
## S3 method for class 'default':
structable(\dots, direction = NULL, split_vertical = FALSE)data is a contingency table.NAs.
Ignored if data is a contingency table"table" or "ftable".direction is"h" for horizontal and "v" for
vertical splits). Values are recycled as needed. If the argument
is of length 1, the value is alternated for all dime"ftable" with the splitting
information ("split_vertical") as additional attribute.ftable, but also accepts the
mosaic-like formula interface (empty left-hand
side). Note that even if the ftable interface is used,
the split_vertical or direction argument is needed to
specify the order of the horizontal and vertical splits.
If pretabulated data with a Freq column is used, than the
left-hand side should be left empty---the Freq column will be
handled correctly.strucplot,
mosaic,
ftablestructable(Titanic)
structable(Titanic, split_vertical = c(TRUE, TRUE, FALSE, FALSE))
structable(Titanic, direction = c("h","h","v","v"))
structable(Sex + Class ~ Survived + Age, data = Titanic)Run the code above in your browser using DataLab