clust_plot: Plot clusters of an umapscan object

Description Usage Arguments See Also Examples

View source: R/clustering_plots.R

Description

Plot clusters of an umapscan object

Usage

1
2
3
4
5
6
7
8
9
clust_plot(
  us,
  parent = "",
  noise_inherit_parent = FALSE,
  alpha = 1,
  ellipses = TRUE,
  fixed = FALSE,
  labels = TRUE
)

Arguments

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

See Also

clust_compute(), clust_describe()

Examples

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)

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