This is a response to the following question about Strahler numbers of trees:
I have an additional question, if I may: how could I go about extracting clades of a certain order as unique groups? .... I've been trying to extract the groups based solely on the assigned Strahler number for each node, but the lower ranking identical numbers mess with the extraction (i.e create unique clades that are just subsets of a bigger clade of the same order).
This is not too hard. Here is some code that should do this:
i<-3 # this is the order we want to extract
# get descendant tip numbers for all clades
# figure out which ones are most inclusive
# extract these clades
OK - let's try it out: