col2hex: Convert R color to hexadecimal code

View source: R/utils_color.R

col2hexR Documentation

Convert R color to hexadecimal code

Description

Convert a color that R understands into the corresponding hexadecimal code

Usage

col2hex(color)

Arguments

color

Color(s) that R understands

Value

Character vector of hexadecimal codes.

Author(s)

EDG

Examples

## Not run: 
col2hex(c("gray50", "skyblue"))

## End(Not run)

egenn/rtemis documentation built on June 14, 2025, 11:54 p.m.