[R] help on drawing a tree with "ape"?

Ben Bolker bolker at ufl.edu
Fri Nov 16 21:43:56 CET 2007




Hua Li wrote:
> 
> Thanks again, Ben.
> 
> Specifically my question should be;
> 
> If I know that I'll be using variables to represent
> the distances between species:
> 
> a = AB
> b = AC
> d = CD
> 
> and I also know my tree can be written as
> "((A:51.78,(C:24.6,D:24.6):27.18):40.06,B:91.84):0.0;"
> 
> is there a way to allow me mark the edges without
> having to see the tree topology first, so that when I
> use "edgelabels", the symbols and the order (
> c("a-b","b","b-d","d","d","a") ) should be
> automatically arranged other than being specified by
> me. In other words, I don't want to be the one who
> tells R the command
> "edgelabels(c("a-b","b","b-d","d","d","a"))". I'd
> rather a way R finds out itself. (for example, after
> some calculation, R knows the edgelabes should be the
> way specified above other than, say, c("a", "b", "c",
> "a-b", "a-c", "b-c"). )
> 
> 

  This is a little bit hard, I will have to think about it ...

install.packages("fortunes"); library(fortunes); fortune("Yoda")

  Ben

-- 
View this message in context: http://www.nabble.com/help-on-drawing-a-tree-with-%22ape%22--tf4789546.html#a13801242
Sent from the R help mailing list archive at Nabble.com.



More information about the R-help mailing list