Generate polygon based on alpha hulls at a given alpha parmater
getPointsOutAlphaHull(
x,
alpha = 2,
coordHeaders = c("Longitude", "Latitude"),
proj = "+proj=longlat +datum=WGS84",
verbose = FALSE,
alphaCap = 20
)a list with 2 elements:
a SpatialPolygons object
the alpha value that was found to satisfy the criteria. If a convex hull was returned, this will list MCH.
dataframe of coordinates in decimal degrees, with a minimum of 3 rows.
the starting value for alpha.
the column names for the longitude and latitude
columns, respectively. If x has two columns, these are assumed to be
longitude and latitude, and coordHeaders is ignored.
the projection information for x. The default is currently the only supported option.
logical. print messages? Default to FALSE
Max alpha value before function aborts and returns a minimum convex hull.
Pascal Title (original version), Josep M Serra-Diaz (modifs)
Based on rangeBuilder::getDynamicRange without cropping to sea and without increments
alpha = initialAlpha, and will then increase alpha by
alphaIncrement until both the fraction and partCount
conditions are met.
If the conditions cannot be satisfied, then a minimum convex hull is returned.
If clipToCoast is set to "terrestrial" or "aquatic", the resulting
polygon is clipped to the coastline, using the dataset
provided with this package.
Alpha hulls are created with ahull.