[R] Strategy for creating a palette...?
Kjetil Kjernsmo
kjetil.kjernsmo at astro.uio.no
Wed Aug 8 02:23:05 CEST 2001
Dear all,
I'm generally not a big fan of GUIs, but I have just discovered one thing
where a GUI would be a nice thing: creating color palettes.
I'm creating an "image", for transparencies for a lecture I'm giving, so
this is going to look great... :-) What I'm out for, is to make green
tones and red tones, and a relatively sharp break between them. This break
will signify a rejection region for a test.
I've spent all evening, er, night trying to tune this, but it's still
ugly. My best shot so far is this:
greenred <- palette(rgb(exp(-(0:255)/80), exp(-(0:255)/80), 0))
greenred2 <- greenred[c(1:160, 220:256)]
and use greenred2.
Any ideas...? Anybody got a pretty palette for this purpose? Also, I'd
like to tune the palette so that the break between green and red happens
at a value of e.g. 0.05. How would I do that?
Best,
Kjetil
--
Kjetil Kjernsmo
Graduate astronomy-student Problems worthy of attack
University of Oslo, Norway Prove their worth by hitting back
E-mail: kjetikj at astro.uio.no - Piet Hein
Homepage <URL:http://folk.uio.no/kjetikj/>
Webmaster at skepsis.no OpenPGP KeyID: 6A6A0BBC
-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-.-
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