strucplot
returning a function
producing mosaic plots.struc_mosaic(zero_size = 0.5, zero_split = FALSE, zero_shade = TRUE,
zero_gp = gpar(col = 0))
FALSE
and zero_shade
is
FALSE
, only one bullet is drawn (centered) for unsplitted
zero cells. If FALSE
and zero_sha
"gpar"
used
for zero bullets in case they are not shaded.struc_mosaic
."unit"
specifying the space
between the tiles.gpar
objects used for the drawing the tiles.strucplot
(typically
when called by mosaic
) and returns a function used by
strucplot
to produce mosaic plots. Friendly, M. (1992),
Graphical methods for categorical data.
SAS User Group International Conference Proceedings, 17,
190--200.
mosaic
,
strucplot
,
structable
## Titanic data
data("Titanic")
## mosaic plot with large zeros
strucplot(Titanic, core = struc_mosaic(zero_size = 1))
Run the code above in your browser using DataLab