Plot clusters of an umapscan object

plot_clusters(
  us,
  parent = "",
  noise_inherit_parent = FALSE,
  alpha = 1,
  ellipses = TRUE,
  fixed = FALSE
)

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

See also

Examples

library(dplyr) iris_num <- iris %>% select_if(is.numeric) us <- new_umapscan(iris_num, n_neighbors = 25, min_dist = 0.1, seed = 1337) us <- compute_clusters(us, minPts = 3, eps = 0.5, graph = FALSE) plot_clusters(us, alpha = 1)
us <- compute_clusters(us, minPts = 3, eps = 0.45, graph = FALSE, parent = "3") plot_clusters(us, alpha = 0.5, ellipses = FALSE, parent = "3")
plot_clusters(us)