library(ggplot2)
library(ggforma)

counts <- marginSums(HairEyeColor, c("Hair", "Eye"))
ggmosaic(counts, shade = "category", category = "Eye", gap = 0, labeling = "border", label = NULL) +
  labs(title = "Hair and eye colour", subtitle = "Area is proportional to the observed count")
