Skip to contents

Horizontal spine partition: height constant, width varies.

Usage

hspine(data, bounds, offset = offset, 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 = "hspine")