categorical: Categorical fly-visual model

Description Usage Arguments Value Author(s) References Examples

View source: R/categorical.R

Description

Applies the fly categorical colour vision model of Troje (1993)

Usage

1
categorical(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 four columns named 'u' ,'s', 'm', 'l', representing a tetrachromatic dipteran viewer).

Value

Object of class colspace consisting of the following columns:

R7p, R7y, R8p, R8y: the quantum catch data used to calculate the remaining variables.

x, y: cartesian coordinates in the categorical colour space.

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

category: fly-colour category. One of p-y-, p-y+, p+y-, p+y+.

Author(s)

Thomas White [email protected]

References

Troje N. (1993). Spectral categories in the learning behaviour of blowflies. Zeitschrift fur Naturforschung C, 48, 96-96.

Examples

1
2
3
4
5
6
## Not run: 
data(flowers)
vis.flowers <- vismodel(flowers, visual = 'musca', achro = 'md.r1')
cat.flowers <- colspace(vis.flowers, space = 'categorical')

## End(Not run)

pavo documentation built on Sept. 22, 2018, 9:04 a.m.