[Rd] pre summary: mapping of colornames into hsv?

Jens Oehlschlägel-Akiyoshi jens.oehlschlaegel-akiyoshi@mdfactory.de
Mon, 28 Feb 2000 15:12:42 +0100



etc/colors.big doesn't do the job currently, as:

  colors.big maps 455 names to rgb in S syntax
  rgb.txt maps 657 names to rgb in C syntax, but unlike colors() it has
mixed upper and lower case

The C source has the information twice
  rgb.c maps 657 names to rgb (mixed upper and lower case)
  graphics.c maps 657 names tp colorstrings (lower case only)

internal name2col() and R colors() accesses those in graphics.c

I tend to create a R representation which copies the info from graphics.c,
unless someone plans to export
internal name2col() to become an official R function, which of course would
be a less redundant solution.

Regards


Jens


-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-devel mailing list -- Read http://www.ci.tuwien.ac.at/~hornik/R/R-FAQ.html
Send "info", "help", or "[un]subscribe"
(in the "body", not the subject !)  To: r-devel-request@stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._