Re: [R] Color names

About this list Date view Thread view Subject view Author view Attachment view

From: Thomas Lumley (tlumley@u.washington.edu)
Date: Sat 28 Jun 2003 - 08:34:58 EST


Message-id: <Pine.A41.4.44.0306271532120.62830-100000@homer08.u.washington.edu>

On Fri, 27 Jun 2003, Gabor Grothendieck wrote:

> How does one get a list of all the color names supported by
> R and the mapping between color names and hex codes? Color
> names are things like "red", "salmon", etc.
>

colors() gives the list, and as its help page tells you, col2rgb converts
color specifications to RGB triples. It should be fairly easy to convert
these to hex codes if you need to.

        -thomas

______________________________________________
R-help@stat.math.ethz.ch mailing list
https://www.stat.math.ethz.ch/mailman/listinfo/r-help


About this list Date view Thread view Subject view Author view Attachment view

This archive was generated by hypermail 2.1.3 : Tue 01 Jul 2003 - 09:12:09 EST