在我的RDA triplot中,我想顯示'網站','物種'及其約束,在我的情況下是Field和Trt。問題在於並非所有級別的約束條件都顯示在圖中。每個因素有兩個層次。R素食主義者RDA並非所有水平的約束條件都顯示在triplot
我的RDA代碼:
Dummy.rda <- rda(species.rda ~ Field + Trt,RDA.env, scale=TRUE)
summary(Dummy.rda, scaling=3) #Here I see only one level of each reported in:Biplot scores for constraining variables. However all levels appear in: Centroids for factor constraints
anova.cca(Dummy.rda, step=100, by='margin') # degrees of freedom are correct for both factors (df=1)
plot(Dummy.rda, scaling = 3) #This displays all levels of Field and Trt but only one of each has an arrow
plot(Dummy.rda, display = "species", xlim = xlims, ylim = ylims,
scaling = 3)
text(Dummy.rda, scaling = 3, display = "bp") # I want to customize the RDA plot, but this 'text' only displays 1 level of each of Field and Trt.
問題是關於文本函數?如果是這樣,你能顯示你想要繪製什麼或者數據的樣本來重現它嗎? – agstudy
嘗試'''display ='cn''''在你上一次的文本調用中。這將繪製因子質心而不是箭頭。 – EDi
問題是爲什麼不顯示所有級別的約束。上面的代碼正確顯示「網站」和「物種」,我想使用文本()來添加箭頭來表示環境約束。在我的例子中,Trt有2個級別,Field有2個級別,但是上面的腳本只在一個級別顯示在triplot上。 –