2017-07-11 4 views
1

私は9つのサイトと数千の種のデータベースを持っています。オーディションプロット - 別の色の着色ポイント

私は私が(無視し、次のプロットのように、赤で種のいくつかのポイントを取得する必要があり、次のプロット enter image description here

を得た

ord = metaMDS (vegan) 
plot(ord, type ="n") 
points(ord, display="species", col="grey") 
text (ord, display="sites") 

を使用して調整とプロットを作成赤いポイントの隣の数字)私はuの前にそれを行っている

enter image description here

プロット関数を歌いますが、それをどうやって取得するかはわかりません。

助けが必要ですか?

答えて

0

ここでは、選択したいくつかのポイントに赤い色を割り当てる方法を示す例を示します。

library(vegan) 

data(dune) 
ord <- metaMDS(dune) 
plot(ord, type ="n") 

# Positions of red-colored points 
red.pts <- c(2,3,4,5,10,15,20) 
cols = rep("black",30) 
cols[red.pts] <- "red" 

points(ord, display="species", pch=20, cex=2, col=cols) 
text(ord, display="sites") 

enter image description here