Learn R Programming

thisplot (version 0.3.7)

cluster_within_group2: Cluster within group

Description

Cluster within group

Usage

cluster_within_group2(mat, factor)

Value

A dendrogram with ordered leaves

Arguments

mat

A matrix of data

factor

A factor

Examples

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

Run the code above in your browser using DataLab