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"))

jrboyd/seqsetvis documentation built on Oct. 14, 2018, 3:04 p.m.