Hi,

 

I am using rpart package to fit classification trees. 

 

library(rpart)

fit <- rpart(Kyphosis ~ Age + Number + Start, data=kyphosis)

plot(fit,uniform=T)

text(fit, use.n=TRUE)

 

But I am unable to label the branches (not the nodes) of the tree. Can somebody help me out in this?

 

Thank you,

Regards

Utkarsh Singhal | Amba Research

Ph +91 80 3980 8017 | Mob +91 99 0295 8815

Bangalore * Colombo * London * New York * San José * Singapore * www.ambaresearch.com  <mailto:utkarshs@ambaresearch.com> 

 

 

This e-mail may contain confidential and/or privileged i...{{dropped:13}}


