powered by
Function to remove all self-intersections from a contour.
untwist(my_poly, plotting = FALSE, poly_name = "unspecified", min_area = 12.5)
SpatialPolygons object from which self-intersections need to be removed
SpatialPolygons
boolean indicating if results should be plotted
name for SpatialPolygons object to return (defaults to "unspecified")
minimum area for any individual polygon
SpatialPolygons object with self-intersections removed
# NOT RUN { par(mfrow = c(1, 2)) plot(interEx, main = "Original Contour") noInter <- untwist(interEx, poly_name = "interEx") plot(noInter, main = "Final Contour") # }
Run the code above in your browser using DataLab