Learn R Programming

labdsv (version 1.8-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, show = minval, digits = 2, 
             sort = FALSE, spcord = NULL)

Arguments

taxa

a data.frame of species abundances with samples as rows and species as columns

clustering

(1) an object of class ‘clustering’, class ‘partana’, or class ‘partition’, (2) a vector of numeric cluster memberships, (3) a factor vector, or (4) a character vector.

minval

the minimum constancy a species must have in at least one class to be included in the output

show

the minimum constancy a species must have to show a printed value

digits

the number of digits to report in the table

sort

a switch to control interactive re-ordering of the output table

spcord

a vector of integers to specify the order in which species should be listed in the table

Value

a data.frame with species as rows, classes as columns, with fraction of occurrence 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 emphasize 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/labs/lab3/lab3.html

See Also

importance, vegtab, vegemite

Examples

Run this code
# NOT RUN {
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