[!] Add a standardised label for x-axis in hyperSpec object

hyAdd_Label_wl(sp, modeX = NULL, label = NULL)

label_wl(modeX = NULL, label = NULL)

Arguments

sp

hyperSpec object.

modeX

Mode of x axis. A string, that indicates either "Fluorescence", "wavelength", "Raman" or "IR".

label

A manually eneterd text or expression of the label.

Value

Object with added label.

Author

Vilmantas Gegzna

Examples


Sp2 <- hyAdd_Label_wl(Spectra2, "IR")

labels(Spectra2, ".wavelength")
#> expression(lambda/nm)
#> expression(lambda/nm)

labels(Sp2, ".wavelength")
#> expression(list(tilde(nu), cm^-1))
#> expression(list(Delta * tilde(nu), cm^-1))