Skip to content
Prev 5749 / 7420 Next

envfit function: is it possible to display correlation coefficient?

Dear all,
Just to expand the reply by Zoltan.

NMDS1 and NMDS2 in the envfit() output are the positions of heads of 
arrows of unit length.
They show the direction of the "best" linear fit into the n-dimensional 
solution of the ordination.
The r2 then says how good the fit is. I.e. it refers to both axes at 
once (or even more axes, if choices= argument is used).
I says how much variance in the variable (e.g. N) is explained by the 
position of objects in the n-dimensional ordination
(by the linear combination of the object scores)?
Or, how consistent is the linear change in the values of the variable 
within the ordination result in that direction?

Imagine you model the variables (e.g. N) as a linear function of NMDS1 + 
NMDS2. The r2 of the model is the envfit() r2:

summary(lm(varechem$N ~ scores(ord)[,"NMDS1"] + 
scores(ord)[,"NMDS2"]))$r.squared
[1] 0.2536379

As Zoltan replied, correlation does not make much sense, the fit is more 
informative.
Arrow-head positions show the direction, r2 the proportion of variance 
explained by that direction
and p (Pr(>r)) the probability that such a result would be achieved by 
chance.

All the best,
Vit


Dne 2018-05-02 07:27, Botta-Duk?t Zolt?n napsal: