Message-ID: <4D8F9A74.4030802@uni-muenster.de>
Date: 2011-03-27T20:13:40Z
From: Edzer Pebesma
Subject: Minor tick marks in spplot
In-Reply-To: <2CBA40BA-2367-437C-BEEF-4DCF0DF780EE@gmail.com>
On 03/27/2011 07:28 PM, S?bastien Durand wrote:
> 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...
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.
>
> Thanks a lot.
> _______________________________________________
> R-sig-Geo mailing list
> R-sig-Geo at r-project.org
> https://stat.ethz.ch/mailman/listinfo/r-sig-geo
--
Edzer Pebesma
Institute for Geoinformatics (ifgi), University of M?nster
Weseler Stra?e 253, 48151 M?nster, Germany. Phone: +49 251
8333081, Fax: +49 251 8339763 http://ifgi.uni-muenster.de
http://www.52north.org/geostatistics e.pebesma at wwu.de