Draw a decision tree diagram from a fitted rpart
model.
tree_diagram(object, prob = TRUE, box.palette = "BuOr", ...)
No return value, only called for side effects; in this case, a
decision tree diagram constructed by a simple call to
rpart.plot
.
An rpart
object.
Logical indicating whether or not to display leaf node probability
estimates for classification trees; default is TRUE
.
Chjaracter string specifying the palette to use for
coloring the nodes; see rpart.plot
for details.
Additional optional argumebts to be passed onto
rpart.plot
.