as.hexcol: Numeric to hex colour converter

View source: R/hexcol.R

as.hexcolR Documentation

Numeric to hex colour converter

Description

Convert numbers and R colour strings into corresponding hex codes for colours

Usage

as.hexcol(x)

Arguments

x

the colour value(s) to be converted to hex values.

Value

hex codes for colours

Examples

as.hexcol(c(1, 2, 3))
as.hexcol(c("red", "black", "green"))


Shians/Glimma documentation built on Sept. 7, 2024, 4:25 p.m.