tof_make_knn_graph | R Documentation |
Title
tof_make_knn_graph(
tof_tibble,
knn_cols,
num_neighbors,
distance_function = c("euclidean", "cosine"),
graph_type = c("weighted", "unweighted"),
...
)
tof_tibble |
A tibble or tof_tbl. |
knn_cols |
Unquoted column names indicating which columns in tof_tibble should be used for the KNN calculation. |
num_neighbors |
An integer number of neighbors to find for each cell ( not including itself). |
distance_function |
A string indicating which distance function to use for the nearest-neighbor calculation. Options include "euclidean" (the default) and "cosine" distances. |
graph_type |
A string indicating if the graph's edges should have weights ("weighted"; the default) or not ("unweighted"). |
... |
Optional additional arguments to pass to |
A tbl_graph
.
NULL
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.