Learn R Programming

tabula (version 1.7.0)

occurrence: Co-Occurrence

Description

Co-Occurrence

Usage

occurrence(object, ...)

# S4 method for matrix occurrence(object)

# S4 method for data.frame occurrence(object)

Value

A stats::dist object.

Arguments

object

A \(m \times p\) matrix of count data.

...

Currently not used.

Author

N. Frerebeau

Details

A co-occurrence matrix is a symmetric matrix with zeros on its main diagonal, which works out how many times each pairs of taxa/types occur together in at least one sample.

See Also

Other diversity measures: heterogeneity(), plot_diversity, rarefaction(), richness(), similarity(), simulate(), turnover()

Examples

Run this code
## Plot spot diagram of a co-occurrence matrix
data("mississippi", package = "folio")

occ <- occurrence(mississippi)
plot_spot(occ)

Run the code above in your browser using DataLab