Principal Component Analysis: Which variables contribute most to principal components ?

[This article was first published on Recipes, scripts and genomics, and kindly contributed to R-bloggers]. (You can report issue about the content on this page here)
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Principal component analysis (PCA) is a mathematical transformation of possibly(correlated) variables into a number of uncorrelated variables called principal components. The resulting components from this transformation is defined in such a way that the first principal component has the highest variance and accounts for as most of the variability in the data (see

For each principal component you can see which variables contribute
most to that component. Depending on what you used to do PCA in R, you
can use loadings() function. Loadings function gives a matrix that
shows how each variable contribute to the principal components. You
can do barplots for each principal component. That will visualize what
contributes to which principal component.  You should do the barplots
for absolute values in the loadings matrix.

Take a look at the sources below, especially the second one

check here basic usage of PCA function in R

check here for detailed explanation on loadings()
especially check the section : “How do we know which species
contribute to which axes? We look at the component loadings (or
“factor loadings”): “

To leave a comment for the author, please follow the link and comment on their blog: Recipes, scripts and genomics. offers daily e-mail updates about R news and tutorials about learning R and many other topics. Click here if you're looking to post or find an R/data-science job.
Want to share your content on R-bloggers? click here if you have a blog, or here if you don't.

Never miss an update!
Subscribe to R-bloggers to receive
e-mails with the latest R posts.
(You will not see this message again.)

Click here to close (This popup will not appear again)