[R] Is there a way to convert rgb/hex value to a (nearest) color name?

Jorgy Porgee jorgy.porgee at gmail.com
Mon Nov 30 20:25:30 CET 2009


Hi all, I'm trying to convert a series of rgb codes into a color name.
What is my easiest option? So far I'm stuck with just converting to
hex using rgb() and I know R knows a number of colours() but a mapping
of the two has failed me.

Any help in this regard will be highly appreciated.

Regards,

George




More information about the R-help mailing list