showSpectrum: Show Visual Ligh Spectrum

Description Usage Arguments Details Author(s) See Also

View source: R/platereader.R

Description

shows the color spectrum of visible light along wavelengths in nm. NOTE that this is not a fully correct spectrum, see wavelength2RGB for details.

Usage

 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",
  ...
)

Arguments

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

Details

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.

Author(s)

Rainer Machne raim@tbi.univie.ac.at

See Also

wavelength2RGB, findWavelength, plotWavelength


raim/platexpress documentation built on Jan. 18, 2022, 1:41 p.m.