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.
Minor tick marks in spplot
2 messages · Sébastien Durand, Edzer Pebesma
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