R uses the sandard X11 colors, I believe, and if you're using linux there's
a rgb.txt file on your computer that contains them.

It's also available here
http://cvsweb.xfree86.org/cvsweb/*checkout*/xc/programs/rgb/rgb.txt?rev=1.1

and a less-authoritative but prettier version:
http://en.wikipedia.org/wiki/X11_color_names

Within R, colors() is what you need. See here for an exhaustive discussion:
http://research.stowers-institute.org/efg/R/Color/Chart/

Sarah

On Tuesday, July 10, 2012, Ted Harding wrote:

> A quick question:
>
> Is there anywhere a listing of the RGB components of the
> named colours listed by colors()?
>
> For example, where would I find the RGB for "orange1"
> or "salmon"?
>
> When I look at an EPS file from R where I have used
> these colours, it seems that for:
>
> "salmon":
> 0.9804 0.5020 0.4471 rgb
>
> "orange1":
> 1 0.6471 0 rgb
>
> However, this is a tedious way of finding out!
>
> With thanks,
> Ted.
>
> -------------------------------------------------
> E-Mail: (Ted Harding) <Ted.Harding@wlandres.net <javascript:;>>
> Date: 10-Jul-2012  Time: 14:05:15
> This message was sent by XFMail
>
> ______________________________________________
> R-help@r-project.org <javascript:;> mailing list
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.
>


-- 
Sarah Goslee
http://www.stringpage.com
http://www.sarahgoslee.com
http://www.functionaldiversity.org

	[[alternative HTML version deleted]]

