Skip to content
Prev 13090 / 29559 Next

Logarithmic legend

Hello,

I have been working on a suitable approach with lattice and raster. Now
you can use levelplot with a logarithmic scale both for the colorkey and
the contour lines. 

First you have to install the 0.10-6 version of rasterVis from R-Forge:

install.packages("rasterVis", repos="http://R-Forge.R-project.org")

library(raster)
library(rasterVis) ## 0.10-6

f <- system.file("external/test.grd", package="raster")
r <- raster(f)
levelplot(r, zscaleLog=10, contour=TRUE, labels=TRUE)

Still in development!

Cheers,

Oscar.

-------------------
Oscar Perpi??n Lamigueiro
Dpto. Ingenier?a El?ctrica
EUITI-UPM

http://procomun.wordpress.com

-----------------------------------------