I have an interaction table with plants species (column) and the number of time each plant has been found to live in each environment (row).
I'd like to know if there is a differential "preference" for plants species to live in different environment. I guess I should run a chi squared test. I'd need some help to make sense of the output.
The greatest is the residual, the biggest is the "preference" of one plant species to its environment. Is it correct?
The p.value gives the proportion of times that we would find such extreme pattern if all species would have no "preference" of environment. Is it correct?
What if I'd like to have such p.value for each plant species. Should I run a chi-squared test for each plant species independently? Or is there some kind of post-hoc test of the chi-squared test?