[This article was first published on is.R(), and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.
We’ve previously covered the convex hull here at is.R(), and in that post I admitted that I was somewhat hard-pressed to come up with a common use-case — at least for Political Science applications.
Well, today’s Gist illustrates the use of something even cooler than the convex hull, in fact it’s the generalization of the convex hull: the alpha hull, as implemented in the alphahull package.
By altering the alpha parameter, you can change the “sensitivity” of the outlining, which is based on a Delaunay triangulation / Voronoi tesselation, which can be seen when plotting an alpha hull object.
To leave a comment for the author, please follow the link and comment on their blog: is.R().
R-bloggers.com offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.