Exploring the relationship between trait evolution and the generation of species diversity