[R] Drawing a tree in R

Severin Hacker shacker at andrew.cmu.edu
Thu Nov 27 01:26:57 CET 2008


Hi,

I've been trying to make use of the dendrogram class to plot a tree. However, my attempts have failed so far because I'm not sure how to build up the nested list. (where do I have to store the nodes?). The tree I want to be drawn is like this: in the form (node, left child,right child) (root,(n1,1,(n2,2,3)),4) 

If it is not easily possible to draw a tree with the help of the dendrogram class I'm open to any other method to draw a tree in R!!

Thanks!

-Severin



More information about the R-help mailing list