Learn R Programming

pavo (version 1.0.0)

dispace: Dichromatic colour space

Description

Calculates coordinates and colorimetric variables that represent reflectance spectra in a dichromatic colour space.

Usage

dispace(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 two columns representing dichromatic viewer).

Value

A data frame of class colspace consisting of the following columns:s, l: the quantum catch data used to calculate the remaining variables.x: the coordinate of the stimulus along a segmentr.vec: the r vector (saturation, distance from the center).

References

Kelber A, Vorobyev M, Osorio D. (2003). Animal colour vision - behavioural tests and physiological concepts. Biological Reviews, 78, 81 - 118.

Examples

Run this code
## Not run: 
# data(flowers)
# vis.flowers <- vismodel(flowers, visual = 'canis')
# di.flowers <- colspace(vis.flowers, space = 'di')
# ## End(Not run) 

Run the code above in your browser using DataLab