col2hex {seqsetvis} | R 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"))

[Package seqsetvis version 1.7.5 Index]