<- readRDS("lalashan.rds") lalashan
Principal Coordinate Analysis
method
Principal Coordinate Analysis (PCOA) is a distance-based ordination that aims to compress similarity patterns into an ordination diagram.
Description
Principal Coordinate Analysis (PCOA), also known as classical (metric) multidimensional scaling, is a statistical technique used to visualise and analyse (dis)similarities between a set of objects or observations. PCOA transforms a distance matrix derived from pairwise dissimilarity measures into a set of orthogonal axes (principal coordinates) in a lower dimensional space. These axes represent the main directions in the data that account for the maximum variance.
Example
library(vegan)
# First calculate distance matrix
<- vegdist(lalashan$cross, method = "bray")
dist_m
# Compute the ordination
<- wcmdscale(dist_m, eig = TRUE)
pcoa_ord plot(pcoa_ord)
Alternative functions
vegan::wcmdscale()
vegan::capscale()
if using only one matrix as inputstats::cmdscale()
ape::pcoa()