colourvision-package | R Documentation |
Colour vision models, colour spaces and colour thresholds. Provides flexibility to build user-defined colour vision models for n number of photoreceptor types. Includes Vorobyev & Osorio (1998) Receptor Noise Limited models <doi:10.1098/rspb.1998.0302>, Chittka (1992) colour hexagon <doi:10.1007/BF00199331>, and Endler & Mielke (2005) model <doi:10.1111/j.1095-8312.2005.00540.x>. Models have been extended to accept any number of photoreceptor types.
The DESCRIPTION file:
This package was not yet installed at build time.
Index: This package was not yet installed at build time.
Felipe Malheiros Gawryszewski [aut, cre]
Maintainer: Felipe Malheiros Gawryszewski <f.gawry@gmail.com>
Gawryszewski, F.M. 2018. Colour vision models: Some simulations, a general n-dimensional model, and the colourvision R package. Ecology and Evolution, 10.1002/ece3.4288.
##Honeybee photoreceptor sensitivity curves
data("bee")
##Grey background:
## with 10 percent. reflectance from 300 to 700nm:
Rb <- data.frame(300:700, rep(10, length(300:700)))
## Read CIE D65 standard illuminant already converted to quantum flux:
data("D65")
##Reflectance data
## with a sigmoid spectrum and midpoint at 500nm and 550 nm
R1<-logistic(x=seq(300,700,1), x0=500, L=50, k=0.04)
R2<-logistic(x=seq(300,700,1), x0=550, L=50, k=0.04)
R<-cbind(R1, R2[,2])
## Run colour vision model:
model<-CTTKmodel(photo="tri", R=R, I=D65, Rb=Rb,
C=bee)
##plot data in the colour space
plot(model)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.