[R] Own Color Palette

Thomas Lumley tlumley at u.washington.edu
Wed Jan 18 16:17:41 CET 2006


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




More information about the R-help mailing list