Accessing NMDS points in metaMDS class object, with associated site names! #617
-
Hi, thanks for vegan! And, sorry if this was already discussed about. I find myself often in need to obtain the point values of the NMDS dimensions computed with the The problem comes when I want to merge these points dataframes with other dataframes that might not have the same row order (top to bottom) that the It would be useful to have a way of accessing |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
The scores ( > library(vegan)
> data(varespec)
> rownames(varespec)
[1] "18" "15" "24" "27" "23" "19" "22" "16" "28" "13" "14" "20" "25" "7" "5"
[16] "6" "3" "4" "2" "9" "12" "10" "11" "21"
> rownames(metaMDS(varespec, trace=FALSE)$points)
[1] "18" "15" "24" "27" "23" "19" "22" "16" "28" "13" "14" "20" "25" "7" "5"
[16] "6" "3" "4" "2" "9" "12" "10" "11" "21"
> rownames(scores(metaMDS(varespec, trace=FALSE), "sites"))
[1] "18" "15" "24" "27" "23" "19" "22" "16" "28" "13" "14" "20" "25" "7" "5"
[16] "6" "3" "4" "2" "9" "12" "10" "11" "21" I guess you didn't have row names in your data. |
Beta Was this translation helpful? Give feedback.
The scores (
points
) will have row names if your data had row names:I guess you didn't have row names in your data.