RGB components of plot() colours
On 12-07-10 9:05 AM, (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!
col2rgb("salmon")
[,1]
red 250
green 128
blue 114
Those need to be divided by 255 to get the colours on the 0-1 scale.
Duncan Murdoch