
Last chance! 50% off unlimited learning
Sale ends in
spec2rgb(rspecdata, alpha = 1)
rspec
,
with a column with wavelength data, named 'wl', and the remaining column containing
spectra to process.spec2rgb
consisting of hexadecimal color values
for passing to further plotting functions.Color matching functions obtained from Colour and Vision Research Laboratory online data respository at http://www.cvrl.org/.
## Not run: ------------------------------------
# data(teal)
# spec2rgb(teal)
#
# # Plot data using estimated perceived color
# plot(teal, col = spec2rgb(teal), type = 'o')
## ---------------------------------------------
Run the code above in your browser using DataLab