Skip to contents

Removes x-axis gridlines and adjusts spacing for mosaic plots. Also applies the marimekko_pal fill scale.

Usage

theme_marimekko(base_size = 12, ...)

Arguments

base_size

Base font size. Default 12.

...

Arguments passed to ggplot2::theme_minimal().

Value

A ggplot2 theme.

Examples

library(ggplot2)

titanic <- as.data.frame(Titanic)
ggplot(titanic) +
  geom_marimekko(
    aes(fill = Survived, weight = Freq),
    formula = ~ Class | Survived
  ) +
  theme_marimekko()