Skip to content
Prev 10079 / 29559 Next

Changing axes of a plot

Ogbos,

You can do this:

library(raster)
xy<-cbind(x, y)
r <- rasterize(xy, raster(nrow=120, ncol=60), fun=sum)

rb <- rev(rainbow(255,s=1,v=1,start=0,end=7/12,gamma=1,alpha=1))
image(r, col=rb, ylab = "Longitude", xlab="Latitude" )


Or, in your code, instead of this
z = t(grid3)

this might work:
z =  <- t(grid3[nrow(grid3):1,])

Robert
On Sun, Nov 21, 2010 at 10:51 PM, ogbos okike <ogbos.okike at gmail.com> wrote: