Introducing LearnPCA

[This article was first published on Chemometrics and Spectroscopy Using R, 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.

PCA, or principal components analysis, is one of the most wide-spread statistical methods in use. It shows up in many disciplines, from political science and psychology, to chemistry and biology. PCA is also really challenging to understand.

I’m pleased to announce that my colleague David Harvey and I have recently released LearnPCA, an R package to help people with understanding PCA. In LearnPCA we’ve tried to integrate our years of experience teaching the topic, along with the best insights we can find in books, tutorials and the nooks and crannies of the internet. Though our experience is in a chemometrics context, we use examples from different disciplines so that the package will be broadly helpful.

The package contains seven vignettes that proceed from the conceptual basics to advanced topics. As of version 0.2.0, there is also a Shiny app to help visualize the process of finding the principal component axes. The current vignettes are:

  • A Guide to the LearnPCA Package
  • A Conceptual Introduction to PCA
  • Step-by-Step PCA
  • Understanding Scores and Loadings
  • Visualizing PCA in 3D
  • The Math Behind PCA
  • A Comparison of Functions for PCA

You can access the vignettes at the Github Site, you don’t even have to install the package. For the Shiny app, do the following:

install.packages("LearnPCA") # you'll need version 0.2.0
library("LearnPCA")
PCsearch()

We would really appreciate your feedback on this package. You can do so in the comments below, or open an issue.

Reuse

Citation

BibTeX citation:
@online{hanson2022,
  author = {Bryan Hanson},
  title = {Introducing {LearnPCA}},
  date = {2022-05-03},
  url = {http://chemospec.org/posts/2022-05-03-LearnPCA-Intro/2022-05-03-LearnPCA-Intro.html},
  langid = {en}
}
For attribution, please cite this work as:
Bryan Hanson. 2022. “Introducing LearnPCA.” May 3, 2022. http://chemospec.org/posts/2022-05-03-LearnPCA-Intro/2022-05-03-LearnPCA-Intro.html.
To leave a comment for the author, please follow the link and comment on their blog: Chemometrics and Spectroscopy Using R.

R-bloggers.com 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)