Description Usage Arguments Details Value See Also
View source: R/build_grid_ahull_crop.R
Create a grid within the alpha hull of a set of points.
1 2 | build_grid_ahull_crop(coords, npts, pad = NULL, grid_opts = list(alpha =
0.3, scale_alpha = TRUE))
|
coords |
A matrix or data.frame of coordinates with two columns |
npts |
The number of points before cropping to the alpha hull shape |
pad |
Ignored |
grid_opts |
A list with component |
This function creates a rectangular grid over a set of points, then computes the alpha hull of the set of points, and discards all the points of the new grid that fall outside of the hull.
This function computes the alpha hull of a set of points which is
an estimate of its overall outline. The intricateness of this outline
is determined by the alpha
parameter: a value close to zero will
produce a very intricate outline and a high value will produce a coarse
outline (similar to the convex hull). It is highly recommended to try
different values of alpha
to see what is most appropriate for one's
datasets.
The coordinates of a grid of points as a data.frame
with
ncol(coords)
columns. Names are transfered from the
coords
data frame.
Other grid.building.functions: build_grid_ahull_fill
,
build_grid_identical
,
build_grid_squaretile
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.