# NMDS: why is the r-squared for a factor variable so low

I am doing an NMDS ordination. The data come from a number of sites scattered around two lakes. In the plots, I coloured the samples from the two lakes blue and green. There seems to be some pretty decent separation between the lakes in the NMDS ordination plot. However, when I use lakes as a factor variable with envfit, I only get an R squared value of 0.19 (although the pvalue was less than 0.001). The R squared value is way lower than I thought. Am I missing something or am I reading too much into this?

• You don't explain what envfit is or does. But whatever you are doing, the impression is that you are surprised that one predictor has only a moderate R^2. The answer seems to be as much ecology as statistics, namely that you surely have many variables at play in your system and you don't really expect one to dominate, unless that's part of your design. Otherwise put, are you surprised that everything but lakes accounts for 0.81? Commented May 17, 2013 at 15:48
• Well, I'm not really surprised by the fact that ecology and other variables are at play here. I'm just surprised at how low the R^2 is given the separation I see in the picture. I was hoping someone would give some insight in to why this might be/ tell me that its a common occurrence and not to worry about it. Envfit is a function in R that fits vectors for environmental variables to ordination plots.
– Jimj
Commented May 19, 2013 at 23:36
• The question remains how far the way that envfit calculates R^2 matches the pattern of difference between the lakes. There are lots of misses as well as hits from any simple discrimination. I haven't tried finding out about envfit. Commented May 19, 2013 at 23:50
• What is the data generation model you are trying to fit? Is the colour of the lakes (type of lake) the response, which you are trying to predict using covariates NMDS1 and NMDS2? Also, commenting on @NickCox's first comment, I think an R^2 value of 0.2 for one covariate is actually very decent. Also note that R^2, which measures deviation from the fitted mean, can be unrepresentative in terms of separating groups. E.g. suppose the fiited mean of one group is 10000 and the other is 100. Even with a lot of variation, you will be able to separate these two groups easily.
– Alex
Commented Oct 19, 2017 at 23:58