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

Description Usage Arguments Value

View source: R/plot_optimal_number_of_clusters.R

Description

Plots optimal number of clusters (as argmax of silhouette coefficient)

Usage

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
plot_argmax_silh(
  SC.list,
  silh.name = "silh:hclust",
  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,
  max.N.cl = NULL,
  bar_width = 0.1,
  dodge_width = 0.12,
  err_bar_line_size = 0.2,
  .shapes = c(Exact = 1, Approx = 0, Subsampling = 2, Random = 3, Metacell_default_fp =
    4, Metacell_default_av = 8, Metacell_SC_like_fp = 4, Metacell_SC_like_av = 8,
    Alternative = 23),
  .colors = c(Exact = "darkred", Approx = "royalblue", Subsampling = "black", Random =
    "gray", Metacell_default_fp = "forestgreen", Metacell_default_av = "forestgreen",
    Metacell_SC_like_fp = "gold", Metacell_SC_like_av = "gold", Alternative = "darkblue"),
  verbose = FALSE,
  ...
)

Arguments

SC.list

list of super-cell-like structures

silh.name

name of silhouette field

sc.silh

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

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.