Learn R Programming

pavo (version 1.0.0)

segclass: Segment classification

Description

Calculates segment classification measures as defined in Endler (1990).

Usage

segclass(rspecdata, range = c(300, 700))

Arguments

rspecdata
(required) a data frame, such as objects of class rspec, with a column containing wavelength range, named 'wl' and spectra data in remaining columns.
range
vector of length 2 indicating the lower and upper wavelength bounds used to calculate segments (defaults to 300 nm to 700 nm).

Value

A data frame with the reflectance proportion at each of the four segments, as well as the LM and MS segment classification scores.

References

Endler, J. A. (1990) On the measurement and classification of color in studies of animal color patterns. Biological Journal of the Linnean Society, 41, 315-352.

Examples

Run this code
## Not run: 
# data(sicalis)
# segclass(sicalis) 
# ## End(Not run)

Run the code above in your browser using DataLab