powered by
Performs PCA of compositional data using a centred logratio distance
PCA(x, ...)
an object of classes PCA, which is synonymous to the stats package's prcomp class.
PCA
prcomp
an object of class compositional
compositional
optional arguments to R's princomp function
princomp
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