[R-sig-eco] question concerning nmds.min

Sarah Goslee sarah.goslee at gmail.com
Thu Feb 2 16:21:12 CET 2012


In the next update of ecodist, nmds.min() will return the stress and
r2 for the selected configuration. Thanks for the suggestion.

Sarah

2012/2/2 Gian Maria Niccolò Benucci <gian.benucci at gmail.com>:
> Thank you, you were of great help.
>
> Cheers,
>
> G.
>
> 2012/2/2 Sarah Goslee <sarah.goslee at gmail.com>
>
>> Are you using ecodist?
>>
>> If so, you need to look at iris.nmds to get the stress and the
>> r2.
>>
>> min(iris.nmds$stress)
>> iris.nmds$r2[which.min(iris.nmds$stress)]
>>
>> The advantage of nmds.min() is that it lets you choose
>> a particular dimension solution rather than the lowest
>> available.
>>
>> For your example, the same thing can be achieved with
>> iris.nmds$conf[[which.min(iris.nmds$stress)]]
>>
>> Sarah
>>

-- 
Sarah Goslee
http://www.functionaldiversity.org



More information about the R-sig-ecology mailing list