drawTreeNodes: Draw nodes of a decision tree

Description Usage Arguments Details Author(s) References Examples

Description

Draw the nodes of a decision tree

Usage

1
2
3
4
5
6
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) 

Arguments

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

.

Details

A variation of draw.tree() from the maptree package.

Author(s)

Graham.Williams@togaware.com, Denis White

References

Package home page: http://rattle.togaware.com

Examples

1
2
## this is usually used in the context of the plotRisk function
## Not run: drawTreeNodes(rpart(Species ~ ., iris))

grayskripko/rattle documentation built on May 17, 2019, 8:34 a.m.