Skip to contents

Plot stability metrics from consensus NMF

Usage

plotStability(
  x,
  name = "cNMF",
  metrics = c("stability", "silhouette", "reproducibility")
)

Arguments

x

A SingleCellExperiment object with cNMF results

name

Character, name of the cNMF result (default "cNMF")

metrics

Character vector, which metrics to plot (default all)

Value

ggplot2 object

Examples

# sce <- runConsensusNMF(sce, k_range = 5:10)
# plotStability(sce)