rgb_bs5: Bootstrap 5 color palettes

View source: R/continuous-bs5.R

rgb_bs5R Documentation

Bootstrap 5 color palettes

Description

Bootstrap 5 color palettes.

Usage

rgb_bs5(
  palette = c("blue", "indigo", "purple", "pink", "red", "orange", "yellow", "green",
    "teal", "cyan", "gray"),
  n = 10,
  alpha = 1,
  reverse = FALSE
)

Arguments

palette

Palette type. There are 11 available options:

  • "blue"

  • "indigo"

  • "purple"

  • "pink"

  • "red"

  • "orange"

  • "yellow"

  • "green"

  • "teal"

  • "cyan"

  • "gray"

n

Number of individual colors to be generated.

alpha

Transparency level, a real number in (0, 1]. See alpha in grDevices::rgb() for details.

reverse

Logical. Should the order of the colors be reversed?

Author(s)

Nan Xiao | me@nanx.me | https://nanx.me

References

https://getbootstrap.com/docs/5.3/customize/color/#all-colors

Examples

library("scales")
show_col(pal_bs5("indigo")(10))
show_col(pal_bs5("indigo", n = 30, alpha = 0.6, reverse = TRUE)(30))

ggsci documentation built on June 22, 2024, 10:29 a.m.