Description Usage Arguments Details Value Author(s) See Also Examples
Creates an object of class graphNEL
from one of class rpart
.
1 | rpart2gNEL(tr, remap=function(x) x, nsep="\n")
|
tr |
instance of |
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>
1 2 3 4 5 | library(rpart)
example(rpart)
ff = rpart2gNEL(fit2)
ff
nodes(ff)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.