redhat_colors: Collect hexidecimal colors

Description Usage Arguments Examples

View source: R/colors.R

Description

Collect hexidecimal colors

Usage

1
redhat_colors(color, partial = FALSE, exclude = FALSE)

Arguments

color

The Red Hat color(s) to be converted. Either a single color name, or a vector of color names.

partial

A logical scalar. Do you want to match partial color names?

exclude

A logical scalar. Do you want get all colors that don't match the color?

Examples

1
2
3
4
5
6
7
# Get one color
x <- redhat_colors("Purple")

# Get a vector of colors
y <- redhat_colors(c("Storage 2", "Gray 3", "Red Hat Red", "Gray 10"))
z <- redhat_colors("Purple", partial = TRUE)
non_grays <- redhat_colors(c("Gray", "Black", "White"), partial = TRUE, exclude = TRUE)

brascoball/ggquik documentation built on Feb. 14, 2021, 5:17 p.m.