if you do
?plot
you can see that the default plot for raster is

plot(x, col=rev(terrain.colors(255)) )

so what you want is not the reverse (rev), but:

plot(x, col=terrain.colors(255) )

you can have a look at
?terrain.colors
and the links therein to learn about other color palettes

Robert

On Sun, Sep 13, 2009 at 11:21 PM, ogbos okike <ogbos.okike@gmail.com> wrote:

> Good morning to everybody. I used pointsToRaster in raster package to do a
> geographic plot. Green represented the maximum count in the colour bar. But
> I wish to reverse this and choose a different colour scale where red would
> present the maximum counts.
>
> I would be glad if anyone could guide me on how to make red represent the
> maximum counts in my plot.
>
> Thank you.
> Best regards
> Ogbos
>
>        [[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
>

	[[alternative HTML version deleted]]

