pcoa | R Documentation |
Computes classical (metric) multidimensional scaling.
pcoa(object, ...)
## S4 method for signature 'dist'
pcoa(object, rank = 2)
object |
A distance structure. |
... |
Currently not used. |
rank |
An |
A PCOA
object.
N. Frerebeau
Gower, J. C. (1966). Some Distance Properties of Latent Root and Vector Methods Used in Multivariate Analysis. Biometrika, 53(3‑4): 325-338. \Sexpr[results=rd]{tools:::Rd_expr_doi("10.1093/biomet/53.3-4.325")}.
stats::cmdscale()
Other multivariate analysis:
ca()
,
mca()
,
pca()
,
predict()
## 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.