Learn R Programming

pavo (version 1.0.0)

coc: Color opponent coding model

Description

Calculates coordinates and colorimetric variables that represent reflectance spectra in the color opponent coding model of hymenopteran vision.

Usage

coc(vismodeldata)

Arguments

vismodeldata
(required) quantum catch color data. Can be either the result from vismodel or independently calculated data (in the form of a data frame with three columns representing trichromatic viewer).

Value

A data frame of class colspace consisting of the following columns:s, m, l: the quantum catch data used to calculate the remaining variables.x, y: coordinates for the points in coc spacer.vec: the r vector (saturation, distance from the center using a city-block metric).

References

Backhaus W. (1991). Color opponent coding in the visual system of the honeybee. Vision Research, 31, 1381-1397.

Examples

Run this code
## Not run: 
# data(flowers)
# vis.flowers <- vismodel(flowers, visual = 'apis', qcatch = 'Ei', relative = FALSE, vonkries = TRUE)
# coc.flowers <- colspace(vis.flowers, space = 'coc')
# ## End(Not run) 

Run the code above in your browser using DataLab