The rainbowr package generates LGBT pride flags overlaid with the R logo

Installation

The package can be installed from GitHub with:

Example 2: LGBT hexes

rainbow_hex <- make_hex("rainbow")
plot(rainbow_hex)


trans_hex <- make_hex("transgender", palette = c("grey50", "black"))
plot(trans_hex)

Example 3: Tiled LGBT hexes

df <- data.frame(
  flag = c("rainbow", "transgender", "bisexual", "bear", "aromantic", "lesbian"),
  palette1 = c("white", "grey80", "#ccccff", "grey30", "grey50", "grey50"),
  palette2 = c("black", "black", "white", "brown", "black", "lavender"),
  row = c(1, 1, 2, 3, 3, 2),
  col = c(1, 2, 1, 2, 3, 3),
  stringsAsFactors = FALSE
)

hextile <- make_hextile(df)
#> adding rainbow hex (1 of 6)
#> adding transgender hex (2 of 6)
#> adding bisexual hex (3 of 6)
#> adding bear hex (4 of 6)
#> adding aromantic hex (5 of 6)
#> adding lesbian hex (6 of 6)
plot(hextile)