Calculates rgb values from spectra based on human colour matching functions.
Usage
spec2rgb(rspecdata, alpha = 1)
Value
A character vector consisting of hexadecimal colour values
for passing to further plotting functions.
Arguments
rspecdata
(required) a data frame, possibly of class rspec, which
contains a column containing a wavelength range, named 'wl', and spectra
data in remaining columns.
alpha
alpha value to use for colours (defaults to 1, opaque).