Learn R Programming

pavo (version 2.9.0)

dispace: Dichromatic colour space

Description

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

Usage

dispace(vismodeldata)

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 segment

  • r.vec: the r vector (saturation, distance from the center).

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 named 's' and 'l', representing a dichromatic viewer's receptors).

Author

Thomas White thomas.white026@gmail.com

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
data(flowers)
vis.flowers <- vismodel(flowers, visual = "canis")
di.flowers <- colspace(vis.flowers, space = "di")

Run the code above in your browser using DataLab