Calculates rgb values from spectra based on human color
matching functions
Usage
spec2rgb(rspecdata)
Arguments
rspecdata
(required) a data frame, possibly an
object of class rspec, with a column with
wavelength data, named 'wl', and the remaining column
containing spectra to process.
Value
A character vector of class spec2rgb consisting of
hexadecimal color values for passing to further plotting
functions.
References
CIE(1932). Commission Internationale de l'Eclairage
Proceedings, 1931. Cambridge: Cambridge University Press.
Color matching functions obtained from Colour and Vision
Research Laboratory online data respository at
http://www.cvrl.org/.