occurrence: Co-Occurrence

occurrenceR Documentation

Co-Occurrence

Description

Co-Occurrence

Usage

occurrence(object, ...)

## S4 method for signature 'matrix'
occurrence(object)

## S4 method for signature 'data.frame'
occurrence(object)

Arguments

object

A m x p matrix of count data.

...

Currently not used.

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.

Value

A stats::dist object.

Author(s)

N. Frerebeau

See Also

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

Examples

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

occ <- occurrence(mississippi)
plot_spot(occ)

tesselle/tabula documentation built on June 27, 2022, 7:21 p.m.