powered by
Example of a SpatialCollections object that contains a SpatialPolygons object and a SpatialLines object
SpatialCollections
SpatialPolygons
SpatialLines
spatialCollEx
SpatialCollections object
# NOT RUN { data(SpatialCollEx) plot(spatialCollEx) plot(spatialCollEx@lineobj, col = "red", add = TRUE) plot(spatialCollEx@polyobj, col = "blue", add = TRUE) # }
Run the code above in your browser using DataLab