plot - R: how to set even space on a scale bar -


i need plot map of global runoff. i'd see more details @ smaller quantities on scale bar. right can see color scheme @ 0-500 congested , hard see. there way can set space of 0-50,50-100, 100-200, 200-300, 300-400, 400-500, 500-1000,1000-2000 on scale bar?

here's example

library(raster) library(rastervis) library(lattice) a1<-c(1,2,-4,100,250,500,-50,20,400,1000,1900,-1500,15,150,600,-850,8,-65,43,900,25,350,600,-550,45) matrixa1<-matrix(a1,5,5) rastera1<-raster(matrixa1)  sbreak<-c(-2000,-1000,-500,-400,-300,-200,-100,-50,0,50,100,200,300,400,500,1000,2000) col.l <- colorramppalette(c('darkblue','blue4','blue3','blue1','blue','deepskyblue','cyan','grey70','grey88','yellow1','orange',                         'darkorange1','darkorange2','red','red3','darkred'))(100) print(levelplot(rastera1,margin=false,col.regions=col.l,main="test",             at=sbreak,par.settings=list(layout.heights=list(xlab.key.padding=2),col=col.l))) 

example


Comments

Popular posts from this blog

java - Run a .jar on Heroku -

java - Jtable duplicate Rows -

validation - How to pass paramaters like unix into windows batch file -