LeafContent | R Documentation |
Description: find the names of all items comprising one or more branches of a hierarchical tree.
LeafContent(myinput, mynode=NA)
myinput |
An object of class |
mynode |
An integer vector of the numbers of branches whose leaf content is desired. The |
A list of items, of the same length as mynode
. Each item corresponds to a branch listed in myneode
and is a character vector containing the names of the leaves in the branch.
Guoli Sun, Alex Krasnitz
data(leukemia) hc<-hclust(dist(data.matrix(leukemia)),"ward") #find the name of leaf 29 LeafContent(hc,mynode=c(-29)) #find the name of leaf 29 and leaves belonging to node 29 LeafContent(hc,mynode=c(-29,29)) ## Not run: mytable<-SigTree(data.matrix(leukemia),mystat="fldc", mymethod="ward",mymetric="euclidean",rand.fun="shuffle.column", distrib="Rparallel",njobs=2,Ptail=TRUE,tailmethod="ML") LeafContent(mytable,mynode=c(-29,29)) mypartition<-PartitionTree(x=mytable,siglevel=0.001,statname="fldc",sigtype="raw") LeafContent(mypartition) ## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.