Spectra are tagged by adding variables and attributes containing color
definitions, labels, and a factor following the wavebands given in
w.band. This methods are most useful for plotting realistic
computed colors from spectral data.
1 2 3 4 5 6 7 8 9 10 11 12 13 14
tag(x, ...) ## Default S3 method: tag(x, ...) ## S3 method for class 'generic_spct' tag(x, w.band = NULL, wb.trim = getOption("photobiology.waveband.trim", default = TRUE), use.hinges = TRUE, short.names = TRUE, byref = FALSE, ...) ## S3 method for class 'generic_mspct' tag(x, w.band = NULL, wb.trim = getOption("photobiology.waveband.trim", default = TRUE), use.hinges = TRUE, short.names = TRUE, byref = FALSE, ...)
an R object
not used in current version
waveband or list of waveband objects The waveband(s) determine the region(s) of the spectrum that are tagged
logical Flag telling if wavebands crossing spectral data boundaries are trimmed or ignored
logical Flag indicating whether to use hinges to reduce interpolation errors
logical Flag indicating whether to use short or long names for wavebands
logical Flag indicating if new object will be created by
reference or by copy of
A copy of
x expanded with additional columns with
default: Default method for generic
generic_spct: Tag one of
generic_spct, and derived classes including
generic_mspct: Tag one of
generic_mspct, and derived classes including
w.band argument does not add any new tags,
instead it removes existing tags if present.
NA, the default, as
w.band argument removes existing waveband tags if present and
wl.color variable. If a waveband object or a list of
wavebands is supplied as argument then tagging is based on them, and
wl.color is also set.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.