tree_diagram | R Documentation |
Draw a decision tree diagram from a fitted rpart
model.
tree_diagram(object, prob = TRUE, box.palette = "BuOr", ...)
object |
An |
prob |
Logical indicating whether or not to display leaf node probability
estimates for classification trees; default is |
box.palette |
Chjaracter string specifying the palette to use for
coloring the nodes; see |
... |
Additional optional argumebts to be passed onto
|
No return value, only called for side effects; in this case, a
decision tree diagram constructed by a simple call to
rpart.plot
.
This function is just a light wrapper around
rpart.plot
and was used to produce several of the
tree diagrams in the accompanying book.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.