如何使用函数 ordilabel 排斥排序图中的重叠标签?

问题描述 投票:0回答:0

我运行了 DCA 并想绘制我的结果。不幸的是,物种标签重叠。

PL_modified <- as.data.frame(read_xlsx("Tabellen für Verarbeitung mit R Excel.xlsx", sheet=7))
test.DCAresult <- decorana(PL_modified)
snam   <- colnames(PL_modified)
#fit environmental parameters
ef <- envfit(test.DCAresult, data.subset, permu = 999)

#empty plot
plot(test.DCAresult, type = "n", xlim=c(-5,5), ylim=c(-3, 3))



#plot environmental vectors
plot(ef, p.max = 0.05, col="red", cex=0.8)

#plot species
ordilabel(test.DCAresult, dis="spec", lab=snam, cex=0.8, col="blue", border="NA", fill="NA", priority=snam)

我知道有一个函数 ggrepel,但我的代码构造是否也有一些东西?

r label overlapping
© www.soinside.com 2019 - 2024. All rights reserved.