Re: [R-sig-phylo] rotate nodes to match taxonomic order

2015-04-08 Thread Liam J. Revell
Hi Jacob. There is a function in phytools that does something like this. It is called minRotate and it was designed to be used internally by phylo.to.map but can also be used on its own. I have blogged about your question and the function here:

[R-sig-phylo] Phylogenetic comparative methods in R course

2015-04-08 Thread Liam J. Revell
Dear list subscribers. Luke Harmon (U.Idaho), Mike Alfaro (UCLA), and I are teaching a workshop on applied PCMs in R from Jul. 2-5 in Ilhabela, Brazil. The course is free of any fee and we will also supply double occupancy accommodation at the course venue, as well breakfast lunch on course

Re: [R-sig-phylo] rotate nodes to match taxonomic order

2015-04-08 Thread Emmanuel Paradis
Hi Jacob, Can you send an example of your output with rotateConstr()? Thanks. Best, Emmanuel Le 08/04/2015 06:41, Jacob Berv a écrit : Hi all, Is there an easy way to get R to automatically rotate the nodes of a phylogeny to match an arbitrary ordering of the tips? Consider the following

Re: [R-sig-phylo] rotate nodes to match taxonomic order

2015-04-08 Thread Jacob Berv
The rotateConstr() function does not give me any errors - Here is how I was trying to use it: With a 200 taxon tree (tree A), I rotated ~50 nodes using rotate() to get it how I wanted. With a mostly similar (topologically identical, but different branch lengths, so node numbers are not