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

View source: R/hyAdd_Label_wl.R

hyAdd_Label_wlR Documentation

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

Description

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

Usage

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(s)

Vilmantas Gegzna

See Also

Other spHelper functions for spectroscopy and hyperSpec: IQR_outliers(), binning(), file, gapDer(), hy2mat(), hyAdd_Labels_PAP_PD_2014(), hyAdd_Labels_TD2009(), hyAdd(), hyDrop_NA(), hyGet_palette(), hyRm_palette(), mad_outliers(), mean_Nsd(), median_Nmad(), plot_hyPalette(), prepare_PAP_RK_2014__MATLAB_failui(), read.OOIBase32(), read.OceanView.header(), read.OceanView(), read.sp.csv2(), read3csv2hy(), replace_spc(), sd_outliers(), spStat(), sp_class_perform()

Examples


Sp2 <- hyAdd_Label_wl(Spectra2, "IR")

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

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


GegznaV/spHelper documentation built on April 16, 2023, 1:42 p.m.