plot_argmax_silh_alt_clusterings: Plots optimal number of clusters (as argmax of silhouette...

Description Usage Arguments Value

Description

Plots optimal number of clusters (as argmax of silhouette coefficient) for multple clustering algorithms

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
plot_argmax_silh_alt_clusterings(
  SC.list,
  silh.names = c("silh:hclust", "silh:unw_hclust", "silh:unw_kmeans",
    "silh:unw_seurat"),
  sc.silh = NULL,
  error_bars = c("extr", "quartiles", "sd")[1],
  to.save.plot = TRUE,
  to.save.plot.raw = FALSE,
  asp = 0.5,
  fig.folder = "./plots",
  fig.name = "",
  ignore.gammas = c(),
  ignore.methods = c(),
  N.clusters.seq.breaks = NULL,
  bar_width = 0.1,
  dodge_width = 0.12,
  err_bar_line_size = 0.2,
  .shapes = c(hclust = 1, unw_hclust = 2, unw_kmeans = 2, unw_seurat = 2),
  .colors = c(hclust = "darkred", unw_hclust = "#882255", unw_kmeans = "#117733",
    unw_seurat = "#8CC6EC"),
  verbose = FALSE,
  ...
)

Arguments

SC.list

list of super-cell-like structures

sc.silh

a vector of single-cell silhouettes with names being number of clusters and values being silhouettes coefficients

silh.name

name of silhouette field

Value

barplot of (median) argmax silhouettes for a certain gamma and SC approach and corresponding data frame


mariiabilous/SuperCellBM documentation built on Jan. 28, 2022, 7:45 p.m.