MinMaxMST: Ratio of the shortest distance to the longest distance in a...

View source: R/allfunctions_cati.R

MinMaxMSTR Documentation

Ratio of the shortest distance to the longest distance in a minimum spanning tree

Description

Ratio of the shortest distance to the longest distance in a minimum spanning tree.

Usage

	MinMaxMST(traits, gower.dist = TRUE, scale.tr = TRUE, method.dist = "euclidian")

Arguments

traits

Traits matrix (traits in column)

gower.dist

Calculate Gower distance using the function daisy from package cluster.

scale.tr

Does traits need to be scale before multi-traits metric calculation? Only use when gower.dist = FALSE. Default is yes.

method.dist

Method to calculate the distance in case of multi-traits metric (function dist). Only use when gower.dist = FALSE. Default is euclidian.

Details

Individuals with the same trait values are at distance 0 and are kept in the tree, so the ratio is 0 as soon as two individuals have the same trait values. Before cati 0.99.7, zero distances were excluded.

Value

The value of the ratio of the shortest distance to the longest distance in a minimum spanning tree.

Author(s)

Aiba et al., 2013 modified by Adrien Taudiere

References

Stubbs, WJ., and Wilson, JB. 2004. Evidence for limiting similarity in a sand dune community. Journal of Ecology 92: 557-567. Aiba, M., Katabuchi, M., Takafumi, H., Matsuzaki, S.S., Sasaki, T. & Hiura, T. 2013. Robustness of trait distribution metrics for community assembly studies under the uncertainties of assembly processes. Ecology, 94, 2873-2885.

Examples



	data(finch.ind)
	
	MinMaxMST(traits.finch[1:10,])
	MinMaxMST(traits.finch[1:10,], gower.dist = FALSE)
	MinMaxMST(traits.finch[1:10,], gower.dist = FALSE, scale.tr = FALSE)



cati documentation built on Nov. 11, 2026, 1:08 a.m.