[R] Convert color hex code to color names

Alejo C.S. alej.c.s at gmail.com
Mon Apr 13 17:28:32 CEST 2015


Hi all, I want to convert the output of:

> rainbow(6)

> [1] "#FF0000FF" "#FFFF00FF" "#00FF00FF" "#00FFFFFF" "#0000FFFF"
"#FF00FFFF"

To a vector of color names. Any tip?


Thanks in advance

C.

	[[alternative HTML version deleted]]



More information about the R-help mailing list