adding legend for phylogenies