Dear all,
I am trying to plot an image so I am trying this through raster layer.
You can copy paste the following
require('raster')
Data<-matrix(data=rnorm(900,80,20),nrow=30,ncol=30)
rasterData<-raster(Data)
lengthOut<-5
xAxisFrequencies<-seq(800,900,length.out=lengthOut)
plot(rasterData, ylab="",xaxt="n",yaxt="n")
axis(1, at=seq(0,1,length.out=lengthOut), xAxisFrequencies, col.axis =
"blue")
What I want is to add a customized x label, but the last line I gave above
axis(1,at.....) does not work.
It would be also nice to add a bit of legend also under the color bar to explain
there what are the values.
Could you please help me with those two ?
Regards
Alex
[[alternative HTML version deleted]]