Learn R Programming

hierfstat (version 0.5-11)

pcoa: 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,

Examples

Run this code
# NOT RUN {
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)))
# }

Run the code above in your browser using DataLab