Changes in biodiversity and species associations along a latitudinal gradient