[R] The beautifull way to plot a decision tree

Uwe Ligges ligges at statistik.uni-dortmund.de
Tue Jun 1 13:55:49 CEST 2004


Daniele Medri wrote:

> Dearest,
> 
> I wanna plot a decision tree (from rpart/tree object) more beautifull and 
> descriptive than the standard version (thinking about the tree plotted by SAS 
> or SPSS Decision Tree).
> 
> Tips about? 
> Are there plan to develop a plot function for that using "grid" library?

You can configure quite a lot for rpart objects, see
?plot.rpart
?post.rpart
?text.rpart

There is the software Klimt for interactive stuff with R's trees by 
Simon Urbanek: http://stats.math.uni-augsburg.de/Klimt/intro.html
It also produces nice plots of tree/rpart objects.

Uwe Ligges


> Thanks.
> 
> Bye




More information about the R-help mailing list