rpart2gNEL {RbcBook1} | R Documentation |
rpart2gNEL(tr, remap=function(x) x, nsep="\n")
tr |
instance of rpart class from rpart package |
remap |
function that maps node names in tree to node names in graph |
nsep |
token that separates node name and vote tally in the rendering |
Not explicitly used in the book, but the basis for a certain graph illustrating application of rpart. The newer coin/party packages have more interesting rendering approaches based on graphviz.
grabSplitV
is a utility function for acquiring the variable
names, remapAff
will remap affymetrix probe names to gene
symbols for use in the remap
parameter
a graphNEL-class
instance with nodes
constructed to convey information on the data tree fit
Vince Carey <stvjc@channing.harvard.edu>
library(rpart) example(rpart) ff = rpart2gNEL(fit2) ff nodes(ff)