Thanks, that fixes it.
I will try graticules as well.
Agus
On Fri, Feb 26, 2016 at 12:45 PM, Michael Sumner wrote:
> 1) is ok with xpd clipping turned off
>
> op <- par(xpd = NA)
> plot(a,axes=FALSE)
> llgridlines(a, plotLines=TRUE, plotLabels=TRUE)
> par(op)
>
> 2) same
> op <- par(xpd = NA)
>
1) is ok with xpd clipping turned off
op <- par(xpd = NA)
plot(a,axes=FALSE)
llgridlines(a, plotLines=TRUE, plotLabels=TRUE)
par(op)
2) same
op <- par(xpd = NA)
plot(a,axes=FALSE,mar=c(4, 3, 2, 3)+0.1)
llgridlines(a, plotLines=TRUE, plotLabels=TRUE)
par(op)
3) Consider using graticule package
I see an odd behaviour of llgridlines() regarding axes labels:
require(rgdal)
require(raster)
a <- extent(c(-90,-81.5625,8.407168,16.63619))
a <- as(a, 'SpatialPolygons')
projection(a) <- "+proj=longlat +datum=WGS84 +no_defs +ellps=WGS84
+towgs84=0,0,0"
No axis labels on x axis:
plot(a,axes=FALSE