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 March 17, 2024, 3:14 p.m.