Skip to content

Minor tick marks in spplot

2 messages · Sébastien Durand, Edzer Pebesma

#
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.
#
On 03/27/2011 07:28 PM, S?bastien Durand wrote:
Try to get it working with levelplot, as in

library(lattice)
levelplot(dist~x+y, meuse.grid, asp = "iso", contour=TRUE, pretty=TRUE,
scales=  list(draw = TRUE, alternating=c(1,0), tck=c(1,0)))

and look in the docs of ?xyplot (which it seems you did).

If you don't get it to work there, it's beyond my control /
capabilities, and you could try the package maintainer,
deepayan.sarkar at gmail.com or r-help.