rgb2code: Transform a rgb vector to a Rcolor code

View source: R/plots.R

rgb2codeR Documentation

Transform a rgb vector to a Rcolor code

Description

Transform a rgb vector to a Rcolor code

Usage

rgb2code(x, rev = FALSE)

Arguments

x

vector or three columns data.frame

rev

reverse,transform a Rcolor code to a rgb vector

Value

Rcolor code like "#69C404"

Examples

rgb2code(c(12, 23, 34))
rgb2code("#69C404", rev = TRUE)

pcutils documentation built on June 26, 2024, 1:06 a.m.