rpart.plot decision tree visualization

Hello All,

I am trying to visualize decision tree in R. The graph is not very readable. I want to know how can I fix this.
My code is prp(ntree, extra=105, branch=1,digits=2, varlen=6,
faclen=10, tweak=1.2,
clip.facs=T, trace =2, round=2.5, leaf.round=2, prefix="n=",xsep= "",
split.family="serif", split.lty=7, branch.lty=1,
branch.type= 0, branch.fill= "black", split.adj=0.6)

Using the above code, I get a graph but I need ideas to make it look good.
I need a graph like the one given below. How do I achieve it?

This topic was automatically closed 21 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.