Skip to content

Instantly share code, notes, and snippets.

View plpxsk's full-sized avatar
💭
👋

Paul Paczuski plpxsk

💭
👋
View GitHub Profile
@plpxsk
plpxsk / quick-PCA.R
Last active August 29, 2015 13:57
very quick summary of PCA
## I don't know if any of this will make sense
## but if you can't wait to get started doing PCA, take a look at the below
## all R code is right below. annoted code is below that
dataset.PCAcor <- princomp(dataset,cor=T)
summary(dataset.PCAcor)
loadings(dataset.PCAcor)
biplot(dataset.PCAcor)
biplot(dataset.PCAcor,col=c("azure4","black"), cex=c(0.8,1), expand=0.9)