Re: [R-sig-Geo] Repost: Find boundaries between two SpatialPolygonsDataFrame objects?

2009-03-30 Thread Jonathan Boyd Thayn
This may be useful. It is part of a function that I put together a while ago to measure the length of common borders. It's been a while since I used it. common.border <- function(shp){ if(length(slot(shp,"polygons"))!=2) stop('This function only handles two polygons at a tim

[R-sig-Geo] Repost: Find boundaries between two SpatialPolygonsDataFrame objects?

2009-03-30 Thread Peter Jepsen
Dear R-helpers I have two SpatialPolygonsDataFrame objects, but I want to plot only the boundary between them. The boundary object is to be overlaid I plot that I have made, so I would strongly prefer a method that does not rely on grid graphics. Thank you in advance for any pointers. K