[R-sig-Geo] custom axes in raster plot
Zivan Karaman
zivan.karaman at gmail.com
Wed Jul 8 13:25:54 CEST 2015
Deal list,
I have a question regarding adding custom axes to raster plot.
I tried using the "axes=F" option in "plot" function (which
effectively doesn't plot axes) and then calling the "axis" function
(which unfortunately doesn't pot anything). Here's a fictitious
example:
library(raster)
r <- raster(nrows=10, ncols=10)
r <- setValues(r, 1:ncell(r))
plot(r)
plot(r, axes=F)
axis(1)
-> the last command doesn't produce any axes
while, for example,
plot(1:10, axes=F)
axis(1)
-> the last command works as expected
Any clues?
Thanks in advance.
Cheers,
Zivan
More information about the R-sig-Geo
mailing list