aphalo/ggspectra

Colour scale based on wavelengths

aphalo opened this issue · 0 comments

When plotting light spectra it is common to highlight graphic elements with the colour corresponding to wavelength.

Define a colour scale based on wavelengths, possibly called scale_colour_wavelength() making the conversion using a cache for the mapping of wavelengths to RGB colours to enhance performance.

Include support for a transformation on wavelength values to create "false colour" scales.