Learn R Programming

dimensio (version 0.10.1)

PCOA-class: PCoA Results

Description

An S4 class to store the results of a principal coordinates analysis.

Arguments

Slots

points

A numeric matrix whose rows give the coordinates of the points chosen to represent the dissimilarities.

eigenvalues

A numeric vector giving the eigenvalues computed during the scaling process.

method

A character string giving the distance that has been used to create the distance structure.

GOF

A length-two numeric vector.

groups

A character vector specifying the class for each observation.

Author

N. Frerebeau

See Also

Other class: BootstrapCA-class, BootstrapPCA-class, CA-class, MCA-class, MultivariateAnalysis, MultivariateBootstrap, MultivariateResults, MultivariateSummary, PCA-class

Examples

Run this code
## Load data
data("iris")

## Compute euclidean distances
d <- dist(iris[, 1:4], method = "euclidean")

## Compute principal coordinates analysis
X <- pcoa(d)

## Screeplot
screeplot(X)

## Plot results
plot(X, extra_quali = iris$Species)

Run the code above in your browser using DataLab