added vector of species richness and plotting