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
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