[R] mapping of colornames into hsv?

Prof Brian Ripley ripley at stats.ox.ac.uk
Mon Feb 28 12:58:36 CET 2000


> To: <jens.oehlschlaegel-akiyoshi at mdfactory.de>
> Date: 28 Feb 2000 12:22:45 +0100
> 
> "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...]

I _think_  etc/colors.big is the R code that does the job, but whether
it is the same is unsure.

-- 
Brian D. Ripley,                  ripley at stats.ox.ac.uk
Professor of Applied Statistics,  http://www.stats.ox.ac.uk/~ripley/
University of Oxford,             Tel:  +44 1865 272861 (self)
1 South Parks Road,                     +44 1865 272860 (secr)
Oxford OX1 3TG, UK                Fax:  +44 1865 272595

-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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