Learn R Programming

labdsv (version 1.2-0)

const: Constancy Table

Description

For a classified set of vegetation samples, lists for each species the fraction of samples in each class the species occurs in.

Usage

const(taxa, clustering, minval = 0, digits = 2, spcord = NULL)

Arguments

taxa
a data.frame of species abundances with samples as rows and species as columns
clustering
a vector of (integer) cluster memberships
minval
the minimum constancy a species must have in at least one class to be included in the output
digits
the number of digits to report in the table
spcord
a vector of integers to specify the order in which species should be listed in the table

Value

  • a dataframe with species as rows, classes as columns, with fraction of occurrrence of species in classes.

Details

Produces a table with species as rows, and species constancy in clusters as columns.

The clustering vector represents a classification of the samples that the table summarizes. It may result from a cluster analysis, partitioning an ordination, subjective partitioning of a vegetation table, or other source.

The minval argument is used to select the dominant species and suppress the rare species. Vegetation tables are often very sparse, and this argument simplifies making them more compact.

The digits argument limits the reported precision of the calculations. Generally, relatively low precision is adequate and perhaps more realistic.

The spcord argument specifies the order species are listed in a table. You can use the reverse of the number of occurrences to get dominant species at the top to rarer at the bottom, use fidelity values for the ordered clusters, or possibly the order of species centroids in an ordination.

References

http://ecology.msu.montana.edu/labdsv/R

See Also

importance, vegtab, vegemite

Examples

Run this code
data(bryceveg) # returns a data.frame called bryceveg
class <- sample(1:10,nrow(bryceveg),replace=TRUE)
const(bryceveg,class,minval=0.25)

Run the code above in your browser using DataLab