I would like to investigate the effect of an environmental factor simultaneously on a species abundance matrix and a functional trait related to these species. To be clearer: I have sampled species in 10 sites, each site is characterized by one out of three levels of isolation and each species has a level of specialization (4 levels). I would like to know if species characterized by a given level of isolation are to be found at sites with a given level of isolation. Any help is welcomed.