Description Usage Arguments Examples
View source: R/k_nearest_neighbour_graph.R
Computes a k-nearest neighbour graph for a given set of points. Refer to the Wikipedia article for details.
1 | k_nearest_neighbour_graph(points, k = 8)
|
points |
A data frame with x, y coordinates for the points |
k |
Number of neighbours |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.