Phylogenetic perspective on ecological niche evolution in american