Learn R Programming

colourvision (version 2.1.0)

photor: Photoreceptor sensitivity spectra.

Description

Generates photoreceptor sensitivity spectra based on lambda-max values.

Usage

photor(lambda.max, lambda = seq(300, 700, 1), beta.band = FALSE)

Value

A data frame with first column corresponding to wavelength values and following columns with photoreceptor sensitivity values

Arguments

lambda.max

Vector with photoreceptor wavelength at maximum sensitivity values, in increasing order.

lambda

Range and interval to calculate the sensitivity curves.

beta.band

Logical. Whether or not to include a beta-band in the sensitivity curve.

Author

Felipe M. Gawryszewski f.gawry@gmail.com

References

Govardovskii, V. I., N. Fyhrquist, T. Reuter, D. G. Kuzmin, and K. Donner. 2000. In search of the visual pigment template. Vis. Neurosci. 17:509-528.

See Also

CTTKmodel, EMmodel, RNLmodel, RNLthres

Examples

Run this code
## Generates photoreceptor sensitivity
## values with lambda max at 350nm, 450nm and 550nm:
C<-photor(lambda.max=c(350,450,550))

plot(C[,2]~C[,1], type="l", col="violet")
lines(C[,3]~C[,1], type="l", col="blue")
lines(C[,4]~C[,1], type="l", col="green")

Run the code above in your browser using DataLab