ChiLiubio / microeco

An R package for data analysis in microbial community ecology
GNU General Public License v3.0
195 stars 56 forks source link

How to extract the contribution of a variable to the principal component (percentage) #336

Open milyzhou opened 6 months ago

milyzhou commented 6 months ago

hi, Chi, I did the PCA, but I do not how to extract the contrib of variable ,such as pca_var$contrib in vegan package. t1 <- trans_beta$new(dataset = dataset, measure = "bray", group = "group") t1$cal_ordination(ordination = "PCA")
class(t1$res_ordination)

Thank you!

ChiLiubio commented 6 months ago

Hi. Do you mean the loading? Please run View(t1$res_ordination$loading).