【发布时间】:2015-07-15 09:37:28
【问题描述】:
我正在尝试通过以下函数将 NMDS by vegan package 应用于数据集:
library(vegan)
library(MASS)
library(MVA)
library(ggplot2)
all_d <- vegdist(landmetr, method= "hor", binary=FALSE, diag=TRUE,
upper=FALSE, na.rm = FALSE)
allmds3 <- isoMDS(all_d, k=3)
gr0 <- factor(france100_7c$LAND_CODE)
plot(allmds3$points[,2:3], col=gr0, bg="grey", cex=0.2,pch=20)
# regress environmental variables on configuration of site points
provaenv3 <- envfit(allmds3$points[,2:3], landmetr,999, na.rm = FALSE, france100_7c$LAND_CODE)
# add the environmental regressions to the area plot
plot(provaenv3,add=T, cex=0.5)
#plot0
ordiellipse (allmds3, gr0, kind = "sd", conf=0.95, label = T)
但是,尽管此双标图是在轴 2 和 3 上构建的,但 ordiellipse 函数仍会编写用于标识轴 1 和 2 双标图上的集群的椭圆。 谁能解释一下为什么会发生这种情况以及如何在轴 2 和轴 3 双图上绘制正确的椭圆?
【问题讨论】:
-
很遗憾,我无法访问
landmetr。你能让你的例子可重现吗?