[R] hex2RGB back to hex not the same?

From: Aaron Mackey <ajmackey_at_gmail.com>
Date: Thu, 28 Aug 2008 16:07:44 -0400

Witness this oddity (to me):

> rainbow_hcl(10)[1]

[1] "#E18E9E"
> d <- attributes(hex2RGB(rainbow_hcl(10)))$coords[1,]
> rgb(d[1], d[2], d[3])
[1] "#C54D5F"

What happened? FYI, this came up as I'm trying to reuse the RGB values I get from rainbow_hcl in a call to rgb() where I can also set alpha transparency levels ...


        [[alternative HTML version deleted]]

R-help_at_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. Received on Thu 28 Aug 2008 - 20:11:42 GMT

Archive maintained by Robert King, hosted by the discipline of statistics at the University of Newcastle, Australia.
Archive generated by hypermail 2.2.0, at Thu 28 Aug 2008 - 21:34:13 GMT.

Mailing list information is available at https://stat.ethz.ch/mailman/listinfo/r-help. Please read the posting guide before posting to the list.

list of date sections of archive