powered by
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)
an rpart decision tree.
.
the number of decimal digits to include in numeric split nodes.
Graham.Williams@togaware.com, Denis White
A variation of draw.tree() from the maptree package.
Package home page: https://togaware.com/projects/rattle/
## this is usually used in the context of the plotRisk function if (FALSE) drawTreeNodes(rpart(Species ~ ., iris))
Run the code above in your browser using DataLab