View source: R/unsupervised-dbscan.R
| plot_knn_dist | R Documentation |
Visualize k-NN distances to help choose eps
plot_knn_dist(data, k = 4, add_suggestion = TRUE, percentile = 0.95)
data |
A data frame or tidy_knn_dist result |
k |
If data is a data frame, k for k-NN (default: 4) |
add_suggestion |
Add suggested eps line? (default: TRUE) |
percentile |
Percentile for suggestion (default: 0.95) |
A ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.