View source: R/alphashape2poly.R
ashape2poly | R Documentation |
Convert an alpha shape object to a polygon. Modified from https://rpubs.com/geospacedman/alphasimple.
ashape2poly(ashape)
ashape |
An alpha shape object. |
The polygon matching the boundaries of the alpha shape.
set.seed(123)
x <- matrix(runif(100), nc = 2)
ashape_02 <- alphahull::ashape(x, alpha = 0.2)
poly_result <- ashape2poly(ashape_02)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.