cluster_within_group2: Cluster within group

View source: R/heatmap.R

cluster_within_group2R Documentation

Cluster within group

Description

Cluster within group

Usage

cluster_within_group2(mat, factor)

Arguments

mat

A matrix of data

factor

A factor

Value

A dendrogram with ordered leaves

Examples

mat <- matrix(rnorm(100), 10, 10)
factor <- factor(rep(1:2, each = 5))
dend <- cluster_within_group2(mat, factor)
dend
plot(dend)

thisplot documentation built on March 7, 2026, 5:07 p.m.