Skip to contents

Provides a default theme for a given palette. Most LGBTQ flags contain white, for which the default light gray background of ggplot2 is too light. Conversely, this same gray is too dark for flags with yellow stripes. LGBTQ themes are carefully curated for each palette.

Usage

theme_lgbtq(name, ...)

Arguments

name

character(1)
Name of the flag the colors are based on.

...

ANY
Parameters passed to theme().

Value

A ggplot2 theme object.

Available palettes

Currently available palettes are:

  • rainbow (6 colors)

  • philadelphia (8 colors)

  • progress (11 colors)

  • bisexual (3 colors)

  • asexual (4 colors)

  • transgender (3 colors)

  • pansexual (3 colors)

  • nonbinary (4 colors)

  • lesbian (5 colors)

  • gay (5 colors)

  • intersex (2 colors)

  • aromantic (5 colors)

  • genderfluid (5 colors)

  • genderqueer (3 colors)

  • lesbian_7 (7 colors)

  • gay_7 (7 colors)

  • agender (4 colors)

  • demiboy (4 colors)

  • demigirl (4 colors)

  • bigender (6 colors)

  • alloace (4 colors)

  • aroallo (5 colors)

Examples

library(ggplot2)
ggplot(data.frame(x = 1:10, y = 15:6,
                  group = rep(c("a", "b"), each = 5)),
       aes(x = x, y = y, color = group)) +
  geom_point(size = 4) +
  scale_color_manual(values = palette_lgbtq("intersex")) +
  # Use the same name as for values, preferably
  theme_lgbtq("intersex")