vtree: Build a Tree When Species Are Encoded by n-Dim Vectors

Description Usage Arguments Details Value See Also Examples

View source: R/metrics.R

Description

Builds a tree when species are encoded by n-dim vectors.

Usage

1
vtree(matrix, outgroup = 'any')

Arguments

matrix

either a dataframe or matrix where each column represents an OTU.

outgroup

when a rooted tree is desired, it indicates the species to be used as outgroup.

Details

The method is based on a distance matrix obtained after converting the cos between vector (similarity measurement) in a dissimilarity measurement.

Value

A list with two objects, the first one is an inter-species distance matrix. The second one is an object of class 'phylo'.

See Also

svdgram

Examples

1
2
3
data(bovids)
mymatrix <- ngraMatrix(bovids[, 6:11], k = 2)[[2]][, 2:7]
vtree(mymatrix, outgroup = "Pseudoryx_nghetinhensis")

EnvNJ documentation built on Sept. 27, 2021, 5:07 p.m.

Related to vtree in EnvNJ...