I would like to turn this
http://i.imgur.com/chLdFmZ.jpg
into this
http://i.imgur.com/vSoe6mu.jpg
My dataset and phylogeny is much more complex than this, but this is the
basic idea.
BL
On Mon, Sep 12, 2016 at 8:16 PM, Liam J. Revell wrote:
> I'm sure this is possible, but I really don'
Hi Branchlizard and list,
in order to do this you would first need to rename one of the foo's in each
clade (I would always rename the first one) as '6 foo's', '4 foo's', etc.
Then you can apply drop.tip on all the foos, as you did before.
I hope this helps.
Cheers,
Florian
2016-09-14 21:32 GMT
Florian and list,
What is your preferred method to go about this? phy$tip.label? If so, how
would one label a tip label from each clade of foo's without having to hard
code the clade number? I am trying to prevent any hard coding.
BL
On Wed, Sep 14, 2016 at 3:46 PM, Florian Boucher
wrote:
> Hi
I don't really know what you mean by 'hard-coding', but here is what I
could think of (it is probably not optimal, but should work pretty quickly
if your tree does not have thousands of tips):
First, borrow 'getDescendants' from phytools:
getDescendants<-function(tree,node,curr=NULL){
if(is.nul