Pages (Desktop)

Pages (Mobile)

Supergrid - add custom grids to base R plots

SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID SUPERGRID

Supergrid - a new function to easily add grids to base R plots with major and minor grid lines, fully customisable and pseudo theming for re-use, super easy to use, read on to learn more!


Supergrid - creating and using themes

In part 2 of this guide looking at supergrid() - a new function to easily add grids to base R plots with major and minor grid lines - this part shows you how to create and add themes to re-use the same styles for different plots. Read on to learn more!


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