[R] mapping of colornames into hsv?

Peter Dalgaard BSA p.dalgaard at biostat.ku.dk
Mon Feb 28 12:22:45 CET 2000


"Jens Oehlschlägel-Akiyoshi" <jens.oehlschlaegel-akiyoshi at mdfactory.de> writes:

> I couldn't find this in online help or the archives:
> Is there any R function or object giving the mapping of the colornames as
> given by colors() into the hsv() model?

It isn't there. You might be able to cook something up which calls the
internal name2col() C function which returns the RGB color code for a
string name. 

[And as I was experimenting with this I tried palette(colors()) and
got a segfault...]

-- 
   O__  ---- Peter Dalgaard             Blegdamsvej 3  
  c/ /'_ --- Dept. of Biostatistics     2200 Cph. N   
 (*) \(*) -- University of Copenhagen   Denmark      Ph: (+45) 35327918
~~~~~~~~~~ - (p.dalgaard at biostat.ku.dk)             FAX: (+45) 35327907
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
r-help 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-help-request at stat.math.ethz.ch
_._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._._



More information about the R-help mailing list