Learn R Programming

treemisc (version 0.0.1)

tree_diagram: Tree diagram

Description

Draw a decision tree diagram from a fitted rpart model.

Usage

tree_diagram(object, prob = TRUE, box.palette = "BuOr", ...)

Value

No return value, only called for side effects; in this case, a decision tree diagram constructed by a simple call to rpart.plot.

Arguments

object

An rpart object.

prob

Logical indicating whether or not to display leaf node probability estimates for classification trees; default is TRUE.

box.palette

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.