Description Usage Arguments Value
Compute pairwise distances between all spots and return list of neighbors for each spot.
1 | find_neighbors(positions, radius, method = c("manhattan", "euclidean"))
|
positions |
(n x 2) matrix of spot coordinates. |
radius |
The maximum distance for two spots to be considered neighbors. |
method |
Distance metric to use. |
List df_j, where df_j[[i]]
is a vector of zero-indexed
neighbors of i.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.