col2hex: converts a valid r color name ("black", "red", "white", etc.)...

View source: R/misc_helpers.R

col2hexR Documentation

converts a valid r color name ("black", "red", "white", etc.) to a hex value

Description

converts a valid r color name ("black", "red", "white", etc.) to a hex value

Usage

col2hex(color_name)

Arguments

color_name

character. one or more r color names.

Value

hex value of colors coded by colors()

Examples

col2hex(c("red", "green", "blue"))
col2hex(c("lightgray", "gray", "darkgray"))

jrboyd/seqsetvis documentation built on Oct. 15, 2024, 11:28 p.m.