wb2rect_spct: Create tagged spectrum from wavebands

Description Usage Arguments Value See Also

View source: R/spct.tag.R

Description

Create a generic_spct object with wavelengths from the range of wavebands in a list. The spectrum is suitable for plotting labels, symbols, rectangles or similar, as the midpoint of each waveband is added to the spectrum.

Usage

1
wb2rect_spct(w.band, short.names = TRUE)

Arguments

w.band

waveband or list of waveband objects The waveband(s) determine the wavelengths in variable w.length of the returned spectrum

short.names

logical Flag indicating whether to use short or long names for wavebands

Value

A generic.spectrum object, with columns w.length, wl.low, wl.hi, wl.color, wb.color and wb.name. The w.length values are the midppoint of the wavebands, wl.low and wl.high give the boundaries of the wavebands, wl.color the color definition corresponding to the wavelength at the center of the waveband and wb.color the color of the waveband as a whole (assuming a flat energy irradiance spectrum). Different spectral data variables are set to zero and added making the returned value compatible with classes derived from generic_spct.

See Also

Other tagging and related functions: is_tagged, tag, untag, wb2spct, wb2tagged_spct


photobiology documentation built on May 19, 2017, 9:54 p.m.

Search within the photobiology package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.