plotNMFCons: Plots NMF clustering, silhouette and consensuse clustering

View source: R/nmf.R View source: R/.ipynb_checkpoints/visium.utilities-checkpoint.R

plotNMFConsR Documentation

Plots NMF clustering, silhouette and consensuse clustering

Description

Plots NMF clustering, silhouette and consensuse clustering

Usage

plotNMFCons(
  coefs,
  cons,
  clcols = NULL,
  max.cex = 4.5/14 * 8,
  colfun = function(x) num2col(x, c("blue", "gray", "orange", "violet", "black"), minx =
    0, maxx = 1),
  title = "",
  ylab.cex = 1,
  xlab.cex = 1
)

Arguments

coefs

coef matrix from NMF

cons

conensus matrix

clcols

colors for clusters

max.cex

dot size for dotPlot

colfun

color function to be used in dotPlot

title

title for whole plot

ylab.cex, xlab.cex

sizes of axis labels

Value

list of clusters, colors and silhouette


iaaka/visutils documentation built on Jan. 17, 2025, 11:29 p.m.