Skip to content
Prev 1163 / 29559 Next

Line width in sp maps

On Tue, 4 Jul 2006, Vladimir Batagelj wrote:

            
Please include at least an indication of which functions you are using. 
The following for SpatialLines objects does work:

library(sp)
SLDF <- contourLines2SLDF(contourLines(volcano))
length(slot(SLDF, "lines"))
plot(SLDF, lwd=1:10)

and this works for SpatialPolygons:

grd <- GridTopology(c(1,1), c(1,1), c(10,10))
polys <- as.SpatialPolygons.GridTopology(grd)
plot(polys, lwd=3)

both for base graphics. Are you using spplot()?

Roger