Description Usage Arguments Details See Also Examples
View source: R/clustering_plots.R
Describe clusters of an umapscan object
1 2 3 4 5 6 7 8 9 10 11 12 |
us |
umapscan object to describe clusters |
parent |
name of the parent cluster |
labels |
if TRUE, use cluster label instead of id if available |
type |
plot type, either |
position |
if type = "barplot", |
keyness_measure |
if type = "keyness", passed as |
n_terms |
if type = "keyness", number of terms to show |
text_size |
if type = "keyness", plot text size |
free_scale |
if type = "keyness", don't use the same scale on each barplot |
show_negative |
if TRUE and type = "keyness", show negative keyness features |
"boxplot" and "ridges" are suitable for continuous variables, "barplot" is better for binary categorical ones. "keyness" is suitable when the original data is a document-feature matrix.
clust_compute()
, clust_get_data()
, clust_membership()
,
clust_rename()
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)
clust_describe(us)
us <- clust_compute(us, minPts = 3, eps = 0.45, parent = "3")
clust_describe(us, type = "ridge")
clust_describe(us, parent = "3")
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.