palette_lgbtq {gglgbtq}R Documentation

Get one of LGBTQ palettes

Description

Returns a palette object with colors based on a specified LGBTQ flag. Note: the number of colors vary between palettes!

Usage

palette_lgbtq(name)

Arguments

name

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

Value

An lgbtq_palette object containing a vector of RGB color codes as strings.

Available palettes

Currently available palettes are:

Examples

palette_lgbtq("bisexual")

data <- data.frame(
  x = 1:10, y = 15:6,
  group = rep(c("a", "b"), each = 5)
)

ggplot2::ggplot(data, ggplot2::aes(x = x, y = y, color = group)) +
  ggplot2::geom_point(size = 4) +
  ggplot2::scale_color_manual(values = palette_lgbtq("intersex"))


[Package gglgbtq version 0.2.0 Index]