PCA | R Documentation |
Performs PCA of compositional data using a centred logratio distance
PCA(x, ...)
x |
an object of class |
... |
optional arguments to R's |
an object of classes PCA
, which is synonymous to the
stats package's prcomp
class.
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")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.