[R] How to show which variables include in plot of classification tree

Muhammad Subianto subianto at cs.uu.nl
Fri Mar 18 18:51:37 CET 2005

Dear all
For my research, I am learning classification now.
I was trying some example about classification tree pakages, such as 
tree and rpart, for instance,
in Pima.te dataset have 8 variables (include class=type):

pima.rpart <- rpart(type ~ npreg+glu+bp+skin+bmi+ped+age,data=Pima.te, 
plot(pima.rpart, uniform=TRUE)

In the result I found only 5 variables: npreg, glu,  bmi, ped, and age 
were showing in the plot.
Now, I have 50 variables in my dataset. The result my classification 
tree very difficult to know which
variables showing in the plot. Are there any trick which variables are 
showing in plot.

Thanks for your help.
Muhammad Subianto

More information about the R-help mailing list