Alpha shape calculation for a set of points, and alpha threshold
Value
ashape
object, which is a list
containing:
edges: x,y coordinates of Delauney triangulation of the alpha-shape.
length: length of the alpha-shape.
alpha: value of alpha used.
alpha.extremes:
integer
index of points which were alpha-extremes.delvor.obj:
delvor
object with Delauney/Voronoi supporting data.x: x,y coordinates of input data
Details
This function is primarily intended to be called by make_point_hull()
,
since that function also iterates alpha
values until it finds a
suitable, and successful, threshold.
See also
Other jam utility functions:
avg_angles()
,
avg_colors_by_list()
,
bulk_cnet_adjustments()
,
call_fn_ellipsis_deprecated()
,
cell_fun_bivariate()
,
collapse_mem_clusters()
,
colorRamp2D()
,
deconcat_df2()
,
display_colorRamp2D()
,
enrichList2geneHitList()
,
filter_mem_genes()
,
filter_mem_sets()
,
find_colname()
,
find_enrich_colnames()
,
get_hull_data()
,
get_igraph_layout()
,
gsubs_remove()
,
handle_igraph_param_list()
,
isColorBlank()
,
make_legend_bivariate()
,
make_point_hull()
,
mem_find_overlap()
,
order_colors()
,
rank_mem_clusters()
,
rotate_coordinates()
,
subgraph_jam()
,
subset_mem()
,
summarize_node_spacing()
,
xyAngle()
Examples
n <- 300
theta <- runif(n, 0, 2*pi)
r <- sqrt(runif(n, 0.25^2, 0.5^2))
x <- cbind(0.5+r*cos(theta), 0.5+r*sin(theta))
alpha <- 0.1
ashape.obj <- ashape(x, alpha=alpha)
plot(ashape.obj$x, asp=1)
segments(x0=ashape.obj$edges[, "x1"], x1=ashape.obj$edges[, "x2"],
y0=ashape.obj$edges[, "y1"], y1=ashape.obj$edges[, "y2"])