Functions, Data Sets and Vignettes to Aid in Learning Principal Components Analysis (PCA)
Overview
Principal component analysis (PCA) is one of the most widely used data analysis techniques. This package provides a series of vignettes explaining PCA starting from basic concepts. The primary purpose is to serve as a self-study resource for anyone wishing to understand PCA better. A few convenience functions are provided as well.
- Branch master renamed to main, with corresponding changes to documentation and GHA scripts.
- Added pkgs
rpart,class,nnetto Depends: (found during stress testing, needed bychemometricsand somehow not automatically present). - Fix navigation error in top_matter.md, found by DTH, and a similar one in refer_to_works_consulted.md identified with further testing.
- New vignette: Vig_08_Notes.
- New language in Vig_06 about the meaning of the term "loadings", along with a correction. Motivated by SantiDu in Issue #14 -- thanks!
- Misc changes to satisfy CRAN, most notably no longer exporting
.demo_PCsearch().
From NEWS.md in the release
Install
Health
- OK13 OK2026-08-05
- NOTE12 OK, 1 NOTE2026-08-01
- OK13 OK2026-06-09
- ERROR12 OK, 1 ERROR2026-06-08
- OK12 OK2026-04-25
Show 2 earlier changesHide 2 earlier changes
- ERROR13 OK, 1 ERROR2026-03-30
- OK14 OK2026-03-10
Documentation
- Help pages
- 4includes a package overview page
- Examples that run
- 100%2 run in a plain check
- Exported functions with examples
- 67%
- Documented parameters
- 100%
- Return-value docs
- 67%
- Help pages citing references
- 0%
- refer_to_works_consulted
- top_matter
- Vignette 01: A Guide to Learning PCA with LearnPCA (Start Here)
- Vignette 02: A Conceptual Introduction to PCA
- Vignette 03: Step-by-Step PCA
- Vignette 04: Understanding Scores and Loadings
- Vignette 05: Visualizing PCA in 3D
- Vignette 06: The Math Behind PCA
- Vignette 07: Functions for PCA
- Vignette 08: Notes
Show 1 moreHide 1 vignette
Downloads
Repository
- PRs merged (all time)
- 86%
- Median days to close, 50 most recently updated closed issues
- 21
- Median days to close, 50 most recently updated closed PRs
- 0
Stars over time
Forks over time
Issues over time
PRs over time
7 development-tooling and community-health practices detected across 3 families in the upstream repository
Checks run against github.com/bryanhanson/learnpca on 2026-10-18.
The R CMD check workflow runs on Linux, macOS and Windows, and on R-devel
GitHub Pages site last deployed 2024-04-26 · The repository has a site deploy workflow
Dependencies
Code & Tests
People & History
Package metadata
- First published
- 2022-02-03
- Total releases
- 5 / 4 yrs
- License
- GPL-3 OSI
- Download size
- 1.3 MB
Cite
Cite this package
Run in R for the authors' preferred citation:
citation("LearnPCA")This package has no citation file, so citation() returns this entry built from DESCRIPTION.
Cite the R Observatory
For a number measured here: a download total, a coverage figure, an archival date.
From data release v2026-10-22, which the citation names so these numbers can be found later. More on citing and the projects behind them.