Finds the topologically-connected components of a point pattern, when all pairs of points closer than a threshold distance are joined.
1 2 3 4 5
A point pattern (object of class
Threshold distance. Pairs of points closer than
Other arguments, not recognised by these methods.
This function can be used to identify clumps of points in a point pattern.
connected is generic. This file documents the methods for
point patterns in dimension two or three (objects of class
The point pattern
X is first converted into an abstract graph
by joining every pair of points that lie closer than
apart. Then the connected components of this graph are identified.
Two points in
X belong to the same connected component if they
can be reached by a series of steps between points of
each step being shorter than
R units in length.
The result is a vector of labels for the points of
where all the points in a connected component have the same label.
A point pattern, equivalent to
X except that the points
have factor-valued marks, with levels corresponding to the
1 2 3 4 5 6 7 8 9 10
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.