Dear R-sig-phylo,
I am looking for a method to plot an unrooted tre/phylo object e in the
reverse order (of the tip labels). Like all the nodes would have
rotated.
Any of you has an idea?
Kind regards,
Thierry
Thierry Janssens
Postdoctoral researcher
Delft University of
Hi Thierry,
There might be a more elegant way to do this, but you can just apply the
ape function rotate() to each node number of the tree (excluding tips).
I.e.
tr2-tree
for(i in length(tr2$tip)+1:tr2$Nnode) tr2-rotate(tr2,i)
plot(tr2)
[rotate() may also be able to take a vector of
-
From: Liam J. Revell [mailto:liam.rev...@umb.edu]
Sent: donderdag 17 maart 2011 16:11
To: Thierry Janssens - TNW
Cc: r-sig-phylo@r-project.org
Subject: Re: [R-sig-phylo] reverse order plotting of newick tree/phylo
object
Hi Thierry,
There might be a more elegant way to do this, but you can just
maart 2011 16:11
To: Thierry Janssens - TNW
Cc: r-sig-phylo@r-project.org
Subject: Re: [R-sig-phylo] reverse order plotting of newick tree/phylo
object
Hi Thierry,
There might be a more elegant way to do this, but you can just apply the
ape function rotate() to each node number
[mailto:liam.rev...@umb.edu]
Sent: donderdag 17 maart 2011 16:11
To: Thierry Janssens - TNW
Cc: r-sig-phylo@r-project.org
Subject: Re: [R-sig-phylo] reverse order plotting of newick tree/phylo
object
Hi Thierry,
There might be a more elegant way to do this, but you can just apply the
ape function rotate