CART Plot
Plot a decision tree obtained by CART.
cartplot( model, margin = 0.2, branch = 0.3, uniform = TRUE, fancy = TRUE, pretty = TRUE, fwidth = 0, fheight = 0, ... )
model |
The decision tree. |
margin |
an extra fraction of white space to leave around the borders of the tree. (Long labels sometimes get cut off by the default computation). |
branch |
controls the shape of the branches from parent to child node. Any number from 0 to 1 is allowed. A value of 1 gives square shouldered branches, a value of 0 give V shaped branches, with other values being intermediate. |
uniform |
if |
fancy |
Logical. If |
pretty |
an alternative to the minlength argument, see |
fwidth |
Relates to option |
fheight |
Relates to option |
... |
Other parameters. |
require (datasets) data (iris) model = CART (iris [, -5], iris [, 5]) cartplot (model)
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.