Learn R Programming

paco (version 0.2.3)

add_pcoord: Principle coordinate analysis of phylogenies

Description

Principle coordinate analysis of phylogenies

Usage

add_pcoord(D, correction = "none")

Arguments

D
A list with objects H, P, and HP, returned by prepare_paco_data
correction
Choose the method with which to correct negative eigenvalues ('none', cailliez', 'lingoes'). Default is 'none'.

Value

The input list with added objects for the principal coordinates of the objects

Examples

Run this code
data(gopherlice)
library(ape)
gdist <- cophenetic(gophertree)
ldist <- cophenetic(licetree)
D <- prepare_paco_data(gdist, ldist, gl_links)
D <- add_pcoord(D)

Run the code above in your browser using DataLab