pcoa: Principal coordinate analysis

View source: R/genepop-misc.R

pcoaR Documentation

Principal coordinate analysis

Description

principal coordinates analysis as described in Legendre & Legendre Numerical Ecology

Usage

pcoa(mat,plotit=TRUE,...)

Arguments

mat

a distance matrix

plotit

Whether to produce a plot of the pcoa

...

further arguments (graphical for instance) to pass to the function

Value

valp

the eigen values of the pcoa

vecp

the eigen vectors of the pcoa (the coordinates of observations)

eucl

The cumulative euclidian distances among observations,

Author(s)

Jerome Goudet jerome.goudet@unil.ch

Examples

data(gtrunchier)
colo<-c("black","red","blue","yellow","orange","green")
pcoa(as.matrix(genet.dist(gtrunchier[,-1])),col=rep(colo,c(5,5,4,5,5,5)))

hierfstat documentation built on May 6, 2022, 1:05 a.m.