Angela
Angela

Reputation: 23

ggvegan for the latest version of R

Is there an alternative to ggvegan for creating a pca plot in R version 4.0.0. I have used the rda function with the following script:

dput(mite.env)
pca<-rda(mite.env[,1:2])
summary(pca)
autoplot(pca, arrows = TRUE)

However, it appears that ggvegan is not available for the latest version of R. Is there an alternative?

Upvotes: 0

Views: 3872

Answers (2)

Gavin Simpson
Gavin Simpson

Reputation: 174803

A more general way to do this that doesn't require the build tools that installing with devtools::install_github() or similar, is to use my R package universe:

install.packages(
  "ggvegan",
  repos = c(
    "https://gavinsimpson.r-universe.dev",
    "https://cloud.r-project.org"
  )
)

Upvotes: 1

Gwang-Jin Kim
Gwang-Jin Kim

Reputation: 9865

Do

if (!require(devtools)) {
  install.packages("devtools")
}
devtools::install_github("gavinsimpson/ggvegan")

devtools::install_github("githubadress") should be always in your toolbelt as an R developer to fetch the newest up-to-date versions of an R package freshly from github.

I tried this with R 4.0.2 and it worked.

Upvotes: 1

Related Questions