add_subtract_scalar | R Documentation |
Add or subtract a constant (scalar) value to each data point in a FTIR spectra. Shifts the plot up or down on the y axis by the specified amount without any other change.
Ajoute ou soustrait une valeur constante (scalaire) à chaque point de données d'un spectre IRTF. Décale le tracé vers le haut ou vers le bas sur l'axe des y de la valeur spécifiée sans aucune autre modification.
add_scalar_value(ftir, value, sample_ids = NA)
subtract_scalar_value(ftir, value, sample_ids = NA)
ftir |
A data.frame of FTIR spectral data including spectra to be shifted. Un data.frame de données spectrales IRTF comprenant les spectres à décalés. |
value |
The numeric value to add or subtract. Le valeur numerique d'ajute ou soustrait. |
sample_ids |
A vector of sample IDs to be shifted. All sample IDs must be present in the 'ftir' data.frame. If modifying all spectra, provide NA or NULL. Un vecteur d'identifiants d'échantillons dont la moyenne doit être décalée. Tous les identifiants des échantillons doivent être présents dans le data.frame 'ftir'. Si modifiez tous les spectres, indiquez NA ou NULL. |
A data.frame containing the adjusted FTIR spectra.
Un data.frame contenant les spectres IRTF ajustee.
# Add 0.1 to each spectra in biodiesel
add_scalar_value(biodiesel, 0.1)
# Subtract 0.05 from biodiesel_0 and biodiesel_0_25
subtract_scalar_value(biodiesel, 0.05, sample_ids = c("biodiesel_0", "biodiesel_0_25"))
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.