[R-sig-Geo] Changing bar scale: spplot

Paul Hiemstra p.hiemstra at geo.uu.nl
Wed Feb 13 11:08:06 CET 2008


Takatsugu Kobayashi wrote:
> Hi,
>
> I am reading sp and trellis manuals, but how can I change a bar scale? I 
> am looking for something like zlim=c()
>
> Thank you!
>
> tk
>
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at stat.math.ethz.ch
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
>   
You can use the at parameter as in:

library(sp)
data(meuse.grid)
gridded(meuse.grid) = ~x+y
spplot(meuse.grid, "dist", at = seq(0, 1, by = 0.1))

cheers,
Paul

-- 
Drs. Paul Hiemstra
Department of Physical Geography
Faculty of Geosciences
University of Utrecht
Heidelberglaan 2
P.O. Box 80.115
3508 TC Utrecht
Phone: 	+31302535773
Fax:	+31302531145
http://intamap.geo.uu.nl/~paul




More information about the R-sig-Geo mailing list