Learn R Programming

StatMethRank (version 1.3)

plotDecTree: Decision Tree Plot

Description

This function will draw decision tree based on the tree information list. All the plotting functions come frome rpart package.

Usage

plotDecTree(mytree, width = 1000, height = 750, uniform = TRUE, branch = 0, margin = 0.1, nspace = -1, minbranch = 0.3, all = FALSE, fancy = TRUE, use.n = TRUE, fwidth = 0.5, fheight = 0.5)

Arguments

mytree
a list returned by the decTreexxx function contains the information of the decision tree.
width,
etc. parameters for ploting, see rpart package for more details. You can try serveral times for the best display.
height
height
uniform
TRUE or FALSE
branch
branch
margin
margin
nspace
nspace
minbranch
minbranch
all
all
fancy
fancy
use.n
use.n
fwidth
fwidth
fheight
fheight

Value

the plot will be save as a png file in your working directory.

See Also

plotDecROC