Pages (Desktop)

Pages (Mobile)

Better Biplots for Principal Component Analysis

Principal component analysis (pca) is a great dimension reduction method to reduce large datasets to a smaller set, keeping the key, or principal components. R offers functions to carry out pca with ease, but creating good looking biplots in R can be quite involved, or require additional packages.

I've written a new, better biplot function, which makes creating beautiful looking biplots a breeze. And, its all written in base R, so does not require any additional packages to be installed. Just load the script and start plotting!

PC1 (73%) PC2 (22.9%) -3 -2 -1 0 1 2 3 -3 -2 -1 0 1 2 3 Species setosa versicolor virginica -1.0 -0.5 0.0 0.5 1.0 -1.0 -0.5 0.0 0.5 1.0 Sepal.Length Sepal.Width Petal.Length Petal.Width