powered by
Produces a 4-panel summary plot for two dimensional PCA for didactical purposes.
PCA2D(X)
a matrix with two columns
X <- rbind(c(-1,7),c(3,2),c(4,3)) colnames(X) <- c('a','b') PCA2D(X)
Run the code above in your browser using DataLab