Learn R Programming

IceCast (version 2.1.0)

untwist: Remove self-intersections

Description

Function to remove all self-intersections from a contour.

Usage

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

Run this code
# 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