Learn R Programming

provenance (version 4.4)

PCA: Principal Component Analysis

Description

Performs PCA of compositional data using a centred logratio distance

Usage

PCA(x, ...)

Value

an object of classes PCA, which is synonymous to the stats package's prcomp class.

Arguments

x

an object of class compositional

...

optional arguments to R's princomp function

Examples

Run this code
data(Namib)
plot(MDS(Namib$Major,classical=TRUE))
dev.new()
plot(PCA(Namib$Major),asp=1)
print("This example demonstrates the equivalence of classical MDS and PCA")

Run the code above in your browser using DataLab