[R] RGB components of plot() colours
murdoch.duncan at gmail.com
Tue Jul 10 15:22:20 CEST 2012
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:
> 0.9804 0.5020 0.4471 rgb
> 1 0.6471 0 rgb
> However, this is a tedious way of finding out!
Those need to be divided by 255 to get the colours on the 0-1 scale.
More information about the R-help