treeplot: Tree Plot for Tree-based Models

View source: R/treeplot.R

treeplotR Documentation

Tree Plot for Tree-based Models

Description

Creates a visualization of the tree created when using a tree-based model.

Usage

treeplot(model, ...)

Arguments

model

The tree-based model to plot.

...

Additional plotting parameters that can be passed. See help documentation for rpart.plot for additional information

Examples

m <- tree(survived ~ age + gender + class, data = titanic)
treeplot(m)


mobilizingcs/mobilizr documentation built on May 5, 2024, 1:01 a.m.