untwist: Remove self-intersections

Description Usage Arguments Value Examples

Description

Function to remove all self-intersections from a contour.

Usage

1
2
untwist(my_poly, plotting = FALSE, poly_name = "unspecified",
  min_area = 12.5)

Arguments

my_poly

SpatialPolygons object from which self-intersections need to be removed

plotting

boolean indicating if results should be plotted

poly_name

name for SpatialPolygons object to return (defaults to "unspecified")

min_area

minimum area for any individual polygon

Value

SpatialPolygons object with self-intersections removed

Examples

1
2
3
4
5
6
7
## Not run: 
par(mfrow = c(1, 2))
plot(interEx, main = "Original Contour")
noInter <- untwist(interEx, poly_name = "interEx")
plot(noInter, main = "Final Contour")

## End(Not run)

IceCast documentation built on June 24, 2019, 9:03 a.m.