Re: [R] Own Color Palette

From: Thomas Lumley <tlumley_at_u.washington.edu>
Date: Thu 19 Jan 2006 - 02:17:41 EST

On Wed, 18 Jan 2006, Robert Michael Rausch wrote:
> I would like to generate a contour-plot according to a master plot. The
> problem is that the rainbow-palette included in R does not answer this
> purpose. I need a darker blue, no turquoise, relatively less green, more
> yellow and more red. Haw can I adjust the rainbow? Alternatively: How
> can I generate my own palette with at least 100 colors with smooth
> transitions?<o:p></o:p>

colorRampPalette will interpolate within a list of colors. You might look at the RColorBrewer package to find a list of colors to interpolate within.

         -thomas



R-help@stat.math.ethz.ch mailing list
https://stat.ethz.ch/mailman/listinfo/r-help PLEASE do read the posting guide! http://www.R-project.org/posting-guide.html Received on Thu Jan 19 03:15:30 2006

This archive was generated by hypermail 2.1.8 : Thu 19 Jan 2006 - 06:12:20 EST