They have hex RGB values instead of names:

R> heat.colors(5)
[1] "#FF0000FF" "#FF5500FF" "#FFAA00FF" "#FFFF00FF" "#FFFF80FF"

Kevin


On Wed, Mar 28, 2012 at 7:24 AM, YN Kim <y2sile...@gmail.com> wrote:

> Hi all,
>
> I'm trying to using heat.color function in my data visualization. So, when
> I set col = heat.color(5), five different colors are displayed from red to
> weak yellow.
>
> But, now I want to know the color's keys or the names of the displayed
> heat.color. For instance, I think one of the five displayed colors seems to
> be 'red'. But, I'm not sure whether it is, also I don't know the color
> names for the others.
>
> How can I know the exact colors name for that like 'red', 'darkyellow' and
> so on?
>
> Thanks.
>
> YN
>
>        [[alternative HTML version deleted]]
>
> ______________________________________________
> R-help@r-project.org 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.
>



-- 
Kevin Wright

        [[alternative HTML version deleted]]

______________________________________________
R-help@r-project.org 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.

Reply via email to