Learn R Programming

fdm2id (version 0.9.9)

cartplot: CART Plot

Description

Plot a decision tree obtained by CART.

Usage

cartplot(model, ...)

Arguments

model

The decision tree.

...

Other parameters.

See Also

CART, cartdepth, cartinfo, cartleafs, cartnodes

Examples

Run this code
require (datasets)
data (iris)
model = CART (iris [, -5], iris [, 5])
cartplot (model)

Run the code above in your browser using DataLab