私は100種を含むデータセットを持っているので、プロットするのは非常に悪いです. そこで、これらの種のサブセットを選び出し、それらを RDA プロットにプロットしたいと思います。私はこの ガイドラインに従っています
コードは次のようになります。
## load vegan
require("vegan")
## load the Dune data
data(dune, dune.env)
## PCA of the Dune data
mod <- rda(dune, scale = TRUE)
## plot the PCA
plot(mod, scaling = 3)
## build the plot up via vegan methods
scl <- 3 ## scaling == 3
colvec <- c("red2", "green4", "mediumblue")
plot(mod, type = "n", scaling = scl)
with(dune.env, points(mod, display = "sites", col = colvec[Use],
scaling = scl, pch = 21, bg = colvec[Use]))
text(mod, display = "species", scaling = scl, cex = 0.8, col = "darkcyan")
with(dune.env, legend("topright", legend = levels(Use), bty = "n",
col = colvec, pch = 21, pt.bg = colvec))
これが最終的なプロットです。ここで、いくつかの種をプロットから削除したいと思いますが、分析は削除したくありません。したがって、プロットは Salrep、Viclat、Aloge、および Poatri のようにのみ表示されます。
助けていただければ幸いです。