clust_label: Label an umapscan cluster

Description Usage Arguments Value See Also Examples

View source: R/clustering.R

Description

Label an umapscan cluster

Usage

1
clust_label(us, id, label)

Arguments

us

umapscan object

id

cluster identifier

label

cluster label

Value

An updated umapscan object (invisibly).

See Also

clust_rename()

Examples

1
2
3
4
5
6
7
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)
us <- clust_rename(us, "1", "clust_1")
us <- clust_label(us, "clust_1", "Cluster 1")
us$clusters

juba/umapscan documentation built on Aug. 29, 2020, 7:31 a.m.