Learn R Programming

rdiversity (version 2.0)

zmatrix: Similarity matrix

Description

Function to calculate a phylogenetic similarity matrix.

Usage

zmatrix(partition, s, ps)

Arguments

partition

two-dimensional matrix of mode numeric with rows as types (species), columns as subcommunities, and each element containing the relative abundance of types in each subcommunity relative to the metacommunity as a whole. In the phylogenetic case, this corresponds to the proportional abundance of terminal taxa

s

smatrix() output; ultrametric-similarity matrix.

ps

phy_struct() output.

Value

zmatrix() returns an \(hS x hS\) matrix; pair-wise similarity of historic species.