powered by
This function will draw the alphahull for a scatterplot.
draw_alphahull(x, y, alpha = 0.5, clr = "black", fill = FALSE, out.rm = TRUE)
A alphahull::ahull(del, alpha = alpha) "gg" object that draws the plot's alpha hull.
numeric vector
transparency value of points
optional colour of points and lines, default black
Fill the polygon
option to return the outlier removed alphahull
require(dplyr) require(ggplot2) require(alphahull) data("features") nl <- features %>% filter(feature == "clusters") draw_alphahull(nl$x, nl$y)
Run the code above in your browser using DataLab