regressoR (version 1.1.7)

dt_plot: dt_plot

Description

makes the graph of the tree.

Usage

dt_plot(model.var = "modelo.dt")

Arguments

model.var

the name of the variable that stores the resulting prediction.

Examples

Run this code
# NOT RUN {
library(rpart)

x <- dt_model('iris', 'Petal.Length', model.var = 'model_dt')
exe(x)
print(model_dt)

x <- dt_plot('model_dt')
exe(x)
# }

Run the code above in your browser using DataLab