powered by
makes the graph of the tree.
dt_plot(model.var = "modelo.dt")
the name of the variable that stores the resulting prediction.
# 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