rgb2code {pcutils} | R 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)
[Package pcutils version 0.2.6 Index]