Skip to contents

Wrapper for a list

Usage

product(...)

Arguments

...

Unquoted variables going into the product plot.

Value

A list of expressions (see rlang::exprs()), one per argument, used inside aes() to mark the variables that define the mosaic's product formula.

Examples

data(titanic)
ggplot(data = titanic,
       aes(x = product(Survived, Class), fill = Survived)) +
  geom_mosaic()