Description Usage Arguments Value
Convets a vector of visible wavelengths to their approximate RGB values with an option to adjust the transparency of the colors to the relative intensity of the emission at each wavelength. The code is modified from https://gist.github.com/friendly/67a7df339aa999e2bcfcfec88311abfc.
1 |
wavelength |
Vector of visible wavelengths, in nm, to convert to RGB values. Limited to wavelengths between 380 nm and 750 nm. Wavelengths outside of this range have an RGB value of |
intensity |
Vector of intensities of wavelengths. |
adj_intensity |
Logical value that determines whether the transparency of an emission line is scaled to the emission line's relative intensity. Defaults to |
gamma |
Correction for a non-linear response to RGB values. |
vector of RGB values
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.