Own Color Palette Dear all,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p> 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> Can anybody help me?<o:p></o:p> Thanks a lot<o:p></o:p> Robert<o:p></o:p> <o:p></o:p> <o:p></o:p> [[alternative HTML version deleted]]
On Wed, 18 Jan 2006, Robert Michael Rausch wrote: ?colorRampPalette> > Own Color Palette > > Dear all,<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" /><o:p></o:p> > > 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> > > Can anybody help me?<o:p></o:p> > > Thanks a lot<o:p></o:p> > > Robert<o:p></o:p> > > <o:p></o:p> > > <o:p></o:p> > > > > > > > > > > [[alternative HTML version deleted]] > > ______________________________________________ > R-help at 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 >-- Roger Bivand Economic Geography Section, Department of Economics, Norwegian School of Economics and Business Administration, Helleveien 30, N-5045 Bergen, Norway. voice: +47 55 95 93 55; fax +47 55 95 95 43 e-mail: Roger.Bivand at nhh.no
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