Description Usage Arguments Details Author(s) See Also
shows the color spectrum of visible light along wavelengths in nm.
NOTE that this is not a fully correct spectrum,
see wavelength2RGB for details.
1 2 3 4 5 6 7 8 9 10 | showSpectrum(
wavelengths = 380:780,
alpha = 99,
pch = 19,
cex = 3,
ylab = "approximate color",
main = "use findWavelength(3)",
xlab = "wavelength, nm",
...
)
|
wavelengths |
vector of wavelengths to be plotted |
alpha |
the alpha factor (opacity) for plot symbols, min=1, max=255 |
pch |
the plot symbol type, see ?par("pch") |
cex |
the plot symbol size, see ?par("cex") |
ylab |
ylab, see ?plot |
main |
main, see ?plot |
xlab |
xlab, see ?plot |
... |
further arguments to plot |
Plots the color spectrum over the selected wavelengths in nm.
The utility functions plotWavelength and
findWavelength can be used to plot and interactively (click
on plot) find wavelengths. The function wavelength2RGB can
then be used to convert this wavelength to RGB colors.
Rainer Machne raim@tbi.univie.ac.at
wavelength2RGB, findWavelength,
plotWavelength
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.