get_paths_from_cut {protoshiny}R Documentation

Given a clustering get the root-to-node paths for visible nodes

Description

This function returns the binary path from root to node for each node that should be displayed in order to return the input clustering. Note that this will only be possible for a clustering 'cl' in which each cluster corresponds to a branch of 'hc'.

Usage

get_paths_from_cut(hc, cl)

Arguments

hc

An object of class 'hclust'

cl

A numeric vector in the format of the output of 'stats::cutree' that gives the cluster memberships of each leaf.


[Package protoshiny version 0.1.0 Index]