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

Description Usage Arguments Value Examples

View source: R/misc_helpers.R

Description

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

Usage

1
col2hex(color_name)

Arguments

color_name

character. one or more r color names.

Value

hex value of colors coded by colors()

Examples

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

seqsetvis documentation built on Nov. 8, 2020, 5:57 p.m.