Skip to content

Commit

Permalink
fix the ordination axis text issue in trans_env
Browse files Browse the repository at this point in the history
  • Loading branch information
ChiLiubio committed Jan 20, 2024
1 parent 42bbf4f commit 3c07610
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions R/trans_env.R
Original file line number Diff line number Diff line change
Expand Up @@ -414,8 +414,8 @@ trans_env <- R6Class(classname = "trans_env",
df_arrows <- as.data.frame(df_arrows)
eigval <- res_ordination$CCA$eig/sum(res_ordination$CCA$eig)
eigval <- round(100 * eigval, 1)
eigval[1] <- paste0("RDA1", " [", eigval[1], "%]")
eigval[2] <- paste0("RDA2", " [", eigval[2], "%]")
eigval[1] <- paste0(self$ordination_method, "1", " [", eigval[1], "%]")
eigval[2] <- paste0(self$ordination_method, "2", " [", eigval[2], "%]")

if(self$ordination_method != "dbRDA"){
scrs$biplot_spe <- scores(res_ordination, choices = c(1, 2), "sp", scaling = "species")
Expand Down

0 comments on commit 3c07610

Please sign in to comment.