[R-sig-Geo] customize tick in plot(raster)
Giuseppe Amatulli
giuseppe.amatulli at gmail.com
Thu Mar 24 20:04:16 CET 2016
Hi,
I'm trying to customize xlabel and relative ticks for a raster plot
library(raster)
raster=raster(matrix(runif(100)))
plot(raster , xlab="" , ylab="" , yaxt="n" , xaxt="n" , xpd=NA )
using
axis(side = 1, tck = -0.1, xpd=NA)
the ticks does not appear outside the plotting region rather if I use
axis(side=1, tck=0.1 , xpd=NA)
the ticks appear inside the plotting region
The same procedure works fine for a normal plot
plot(c(1,1) , xlab="", ylab="", yaxt="n", xaxt="n", xpd=NA )
axis(side = 1, tck = -0.1 , xpd=NA )
Does anyone know how to customize the par() settings in order to be able to
plot outside the raster-plotting region?
Thanks in advance
--
Giuseppe Amatulli, Ph.D.
Department of Ecology and Evolutionary Biology, Yale University.
Jetz Lab, OML Room 405
P.O. Box 208106
165 PROSPECT ST
New Haven, CT 06520-8106
Teaching: spatial-ecology.net
Work: http://sbsc.yale.edu/giuseppe-amatulli
<http://www.spatial-ecology.net>
[[alternative HTML version deleted]]
More information about the R-sig-Geo
mailing list