Skip to contents

Plot a decision tree

Usage

tl_plot_tree(model, ...)

Arguments

model

A tidylearn tree model object

...

Additional arguments to pass to rpart.plot()

Value

The return value of rpart.plot, called for its side effect of drawing the tree.

Examples

# \donttest{
model <- tl_model(iris, Species ~ ., method = "tree")
tl_plot_tree(model)

# }