Skip to contents

Vertical bar partition: height constant, width varies.

Usage

vbar(data, bounds, offset = 0.02, max = NULL)

Arguments

data

bounds data frame

bounds

bounds of space to partition

offset

space between spines

max

maximum value

Value

A data frame of rectangle boundaries (l, r, b, t), one row per level of data.

Examples

data(titanic)
ggplot(data = titanic, aes(x = product(Class))) +
  geom_mosaic(divider = "vbar")