get_rpal_colors: Manipulate colors

Description Usage Arguments Details Value Examples

Description

Get the palette of colors associated with a string.

Usage

1

Arguments

color

character (vector). Name of color.

sort

logical. Default is provided. Whether or not to use sort(). Important when more than color is provided. If sort = FALSE, then the colors are returned in an alternating pattern.

Details

None.

Value

character (vector).

Examples

1
2
3
4
color_main <- "firebrick"
pal_main <- get_rpal_colors(color_main)
colors_main <- c("firebrick", "steelblue")
pal_main <- get_rpal_colors(colors_main)

aelhabr/temisc documentation built on May 28, 2019, 3:55 p.m.