Decision Tree : Custom CTREE Plot


R Data Science: R Programming A-Z: R For Data Science With Real Exercises!

Suppose you want to change a look of default decision tree generated by CTREE function in the party package.
Decision Tree Custom Ctree Plot
library(party)
t1.prior = ctree(Creditability ~ . , data = train)
plot(t1.prior, type="simple", inner_panel=node_inner(t1.prior,abbreviate = FALSE, pval = TRUE, id = FALSE), terminal_panel=node_terminal(t1.prior, abbreviate = FALSE, digits = 2, fill = c("white"),id = FALSE))
Coursera Data Science

R Tutorials : 75 Free R Tutorials

Get Free Email Updates :
*Please confirm your email address by clicking on the link sent to your Email*

Related Posts:

0 Response to "Decision Tree : Custom CTREE Plot"

Post a Comment

Next → ← Prev