plot(1:10,1,col= colorRampPalette(c("blue", "red"))(10) + ) # needed to add trailing paren Error in xy.coords(x, y, xlabel, ylabel, log) : 'x' and 'y' lengths differ plot(1:10,rep(1,10),col= colorRampPalette(c("blue", "red"))(10)) # works
Dennis On Sun, Sep 12, 2010 at 6:25 AM, caspar hallmann <caspar.hallm...@gmail.com>wrote: > use colorampPalette(). You can define your own colors in any order. > something as in : > > plot(1:10,1,col= colorRampPalette(c("blue", "red"))(10) > > hope it helps > > Caspar > > On Sun, Sep 12, 2010 at 3:05 PM, Manuel Spínola <mspinol...@gmail.com> > wrote: > > Dear list members, > > > > I am plotting the result of a kriging with spplot and I would like to > > reverse the colors in the heat.colors palette for the col.regions > argument. > > In other words I want the red colors to represent higher values than the > > yellow colors to represent temperature. > > Best, > > > > Manuel > > > > -- > > Manuel Spínola, Ph.D. > > Instituto Internacional en Conservación y Manejo de Vida Silvestre > > Universidad Nacional > > Apartado 1350-3000 > > Heredia > > COSTA RICA > > mspin...@una.ac.cr > > mspinol...@gmail.com > > Teléfono: (506) 2277-3598 > > Fax: (506) 2237-7036 > > > > _______________________________________________ > > R-sig-Geo mailing list > > R-sig-Geo@stat.math.ethz.ch > > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > > > > _______________________________________________ > R-sig-Geo mailing list > R-sig-Geo@stat.math.ethz.ch > https://stat.ethz.ch/mailman/listinfo/r-sig-geo > [[alternative HTML version deleted]]
_______________________________________________ R-sig-Geo mailing list R-sig-Geo@stat.math.ethz.ch https://stat.ethz.ch/mailman/listinfo/r-sig-geo