我正在尝试通过以下函数在数据集上通过 vegan 包应用 NMDS:
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 双图上绘制正确的椭圆?