drawTreeNodes | R Documentation |
Draw the nodes of a decision tree
drawTreeNodes(tree, cex = par("cex"), pch = par("pch"), size = 4 * cex, col = NULL, nodeinfo = FALSE, units = "", cases = "obs", digits = getOption("digits"), decimals = 2, print.levels = TRUE, new = TRUE)
tree |
an rpart decision tree. |
cex |
. |
pch |
. |
size |
. |
col |
. |
nodeinfo |
. |
units |
. |
cases |
. |
digits |
. |
decimals |
the number of decimal digits to include in numeric split nodes. |
print.levels |
. |
new |
. |
A variation of draw.tree() from the maptree package.
Graham.Williams@togaware.com, Denis White
Package home page: https://rattle.togaware.com
## this is usually used in the context of the plotRisk function ## Not run: drawTreeNodes(rpart(Species ~ ., iris))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.