color2hex: Replaces color names with hex-color names

Description Usage Arguments Value Examples

View source: R/color2hex.R

Description

Replaces color names with hex-color names

Usage

1

Arguments

x

a vector, matrix, or data.frame containing color names

Value

hex-color-names in the same structur as x

Examples

1
2
3
4
5
6
7
8
9
color2hex("red")
color2hex("#ff0000")

color2hex(c("red", "green"))

color2hex(matrix(c("red", "green", "blue", "yellow"), 2, 2))

color2hex(data.frame(x = c("red", "green"),
                     y = c("blue", "yellow")))

DavZim/colorTable documentation built on May 28, 2019, 2:31 p.m.