
Template for a mosaic plot. A mosaic plot is composed of spines in alternating directions.
Source:R/divider.R
mosaic.RdTemplate for a mosaic plot. A mosaic plot is composed of spines in alternating directions.
Value
A function of one argument, the number of splits n, that returns
a character vector of divider function names ("hspine"/"vspine") to
apply at each split – suitable for the divider argument of
geom_mosaic() and related layers.
Examples
data(titanic)
ggplot(data = titanic, aes(x = product(Class, Sex))) +
geom_mosaic(divider = mosaic("v"))