Polygon Clipping

R port of Angus Johnson's open source library 'Clipper'. Performs polygon clipping operations (intersection, union, set minus, set difference) for polygonal regions of arbitrary complexity, including holes. Computes offset polygons (spatial buffer zones, morphological dilations, Minkowski dilations) for polygonal regions and polygonal lines. Computes Minkowski Sum of general polygons. There is a function for removing self-intersections from polygon data.


Reference manual

It appears you don't have a PDF plugin for this browser. You can click here to download the reference manual.

install.packages("polyclip")

1.10-7 by Adrian Baddeley, 2 years ago


https://www.angusj.com, https://sourceforge.net/projects/polyclipping, https://github.com/baddstats/polyclip


Report a bug at https://github.com/baddstats/polyclip/issues


Browse source code at https://github.com/cran/polyclip


Authors: Angus Johnson [aut] (C++ original , http://www.angusj.com/delphi/clipper.php) , Adrian Baddeley [aut, trl, cre] , Kurt Hornik [ctb] , Brian D. Ripley [ctb] , Elliott Sales de Andrade [ctb] , Paul Murrell [ctb] , Ege Rubak [ctb] , Mark Padgham [ctb]


Documentation:   PDF Manual  


BSL license



Imported by ggarrow, ggcube, ggforce, ggplotplus, ggpsychro, gridGeometry, highriskzone, mascarade, spatstat.geom, subniche, venny, visualFields, vwline.

Suggested by HVT, deldir, mapscanner, surveillance.


See at CRAN