[R-sig-Geo] Minor tick marks in spplot

Sébastien Durand v8extra at gmail.com
Sun Mar 27 19:28:37 CEST 2011


Hello to all,

I wish to add minor tick mark to the already existing major tick marks on the following plot 

I wish those minor tick marks to be shorter and grey

Here is an example...

data(meuse.grid)
m = SpatialPixelsDataFrame(points = meuse.grid[c("x", "y")], data = meuse.grid)

spplot(m, zcol="dist", contour=TRUE, pretty=TRUE, 
 		scales=  list(draw = TRUE, alternating=c(1,0), tck=c(1,0)))


# I have tried the yscale.components.subticks and xscale.components.subticks but I am not able to make it work when I used the spplot...

Any hints...

Thanks a lot.


More information about the R-sig-Geo mailing list