cluster_visual: Visulize the clustering results

colMat_reorderR Documentation

Visulize the clustering results

Description

'colMat_reorder( )' reorder the columns of affinity matrix by specified groups.

'colMat_heatMap( )' plots the heatmap of affMatrix ordered by groups.

'crossValid( )' 2-fold crossValidation selects the number of clusters.

Usage

colMat_reorder(affMatrix, centers, labels)

colMat_heatMap(
  affMatrix,
  centers,
  labels,
  margin = 0.5,
  midpoint = 0,
  limit = c(-1, 1),
  size = 0.2,
  legendName = "",
  title = ""
)

crossValid_func_adjR(x, centers, pt)

Arguments

affMatrix

a square affinity matrix.

centers

number of clusters.

labels

label assignment of the columns.

margin

a numeric value adjusting the position of group lines.

midpoint

a numeric value of the midpoint of heatmap range.

limit

a numeric range of the values.

size

size of the groupline.

legendName

a character name of the legend.

title

a character name of the heatmap.

x

an input matrix.

pt

partition times.

Value

matReorder

affinity matrix reordered by groups.

groupLens

a vector of group lengths.


xiangli2pro/hbcm documentation built on Nov. 15, 2024, 9:15 a.m.