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

Terry Therneau therneau at mayo.edu
Wed Dec 9 16:10:04 CET 2009


> In the nodes of the tree, the values of the covariates are represented
> with a, b or c (tree attached).

Try help('text.rpart'), and note the 'pretty' argument therein.
There is often not enough room for long labels, and so the default is to
do the severe truncation you speak of.

Terry Therneau




More information about the R-help mailing list