cutree_order: Cut a tree into groups of data in the order of the tree

View source: R/utils.R

cutree_orderR Documentation

Cut a tree into groups of data in the order of the tree

Description

Cut a tree (result from hclust) into groups of data. Groups are in the order of the tree leafs

Usage

cutree_order(tree, k = k, h = h)

Arguments

tree

an hclust object

k

the desired number of groups

h

height where the tree is to be cut

Notes

Taken from http://larmarange.github.io/JLutils/reference/cutree.order.html

Examples


hc <- hclust(dist(USArrests))
memb <- cutree_order(hc, k = 10)

tanaylab/tgutil documentation built on March 16, 2024, 12:07 a.m.