Skip to content
Prev 4781 / 29559 Next

seamless maps

On Thu, 8 Jan 2009, Hans-J?rg Bibiko wrote:

            
A further idea if you don't need the polygons is:

wrld_simpl_SL <- as(as(wrld_simpl, "SpatialPolygons"), "SpatialLines")
wrld_simpl_SL_0_360 <- recenter(nowrapSpatialLines(wrld_simpl_SL))
plot(wrld_simpl_SL_0_360, axes=TRUE, xlim=c(110, 330), ylim=c(-80, 80))

which keeps the correct coordinates but at the cost of losing the polygons 
and a couple of artefact lines at 180?.

Roger