Learn R Programming

geostats (version 1.6)

PCA2D: Principal Component Analysis of 2D data

Description

Produces a 4-panel summary plot for two dimensional PCA for didactical purposes.

Usage

PCA2D(X)

Arguments

X

a matrix with two columns

Examples

Run this code
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