[R] problem in labeling the nodes of tree drawn by rpart

2009-12-08 Thread kaida ning
Hi all, I used rpart to fit a model, where the covariates are categorical variables. Then I plotted the tree (mytree) and used the command "text" to add labels to the tree. In the nodes of the tree, the values of the covariates are represented with a, b or c (tree attached). Is there a way to sho

[R] problem in labeling the nodes of tree drawn by rpart

2009-12-07 Thread kaida ning
Hi all, I used rpart to fit a model, where the covariates in the model are categorical variables. Then I plotted the tree (mytree) and used the command "text" to add labels to the tree. In the nodes of the tree, the values of the covariates are represented with a, b or c. Is there a way to show t