Hi R-users,
I try to put image legend via image.plot function, but I do not know put
this in log scale. The last line of code put legend in linear scale, but I
want put this in log scale. This is a image of the ocean color web site
8-day composite L3 4KM. Anybody colud get me advise please.
This is de code...
uno<-schl[1,,]
rn_cl<-exp(range(uno,na.rm=T))
x11()
par(mgp=c(-2.7,1.5,0),mar=c(5,4.5,5,5.8),cex.axis=2.5)
plotMap(worldLLhigh,xlim=c(286,292),ylim=c(-32,-18),proj="LL",tckLab=F,tck=-.04,col=rgb(255,255,160,max=255),xlab="",ylab="",plt=NULL,axes=F)
image(lon+360,lat,uno,col=tim.colors(50),add=T,zlim=log(rn_cl))
addPolys(worldLLhigh,col=rgb(255,255,160,max=255))
ax1<-seq(286,292,by=2);ax2<-seq(74,68,by=-2);ax3<-seq(-21,-19,by=1)
axis(1,at=ax1,labels=parse(text=paste(ax2,"*degree~W",sep="")))
axis(2,at=ax3,labels=parse(text=paste(ax3*-1,"*degree~S",sep="")),las=2)
image.plot(legend.only=TRUE,legend.width=2.9,legend.mar=3,zlim=c(.01,10))
> version
_
platform x86_64-unknown-linux-gnu
arch x86_64
os linux-gnu
system x86_64, linux-gnu
status
major 2
minor 11.0
year 2010
month 04
day 22
svn rev 51801
language R
version.string R version 2.11.0 (2010-04-22)
Thank
[[alternative HTML version deleted]]