Description Usage Arguments See Also Examples
View source: R/clustering_plots.R
Plot clusters of an umapscan object
1 2 3 4 5 6 7 8 9 |
us |
umapscan object |
parent |
name of the parent cluster |
noise_inherit_parent |
if TRUE, 'Noise' points are given their parent cluster membership |
alpha |
point transparency for clusters plot |
ellipses |
if TRUE, plot confidence ellipses around clusters |
fixed |
if TRUE, force coord_fixed on plot |
labels |
if TRUE, use cluster label instead of id if available |
clust_compute()
, clust_describe()
1 2 3 4 5 6 7 8 | library(dplyr)
iris_num <- iris %>% select_if(is.numeric)
us <- new_umapscan(iris_num, n_neighbors = 25, min_dist = 0.1, seed = 1337)
us <- clust_compute(us, minPts = 3, eps = 0.5, graph = FALSE)
clust_plot(us, alpha = 1)
us <- clust_compute(us, minPts = 3, eps = 0.45, graph = FALSE, parent = "3")
clust_plot(us, alpha = 0.5, ellipses = FALSE, parent = "3")
clust_plot(us)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.