Description Usage Arguments Value Author(s) Examples
View source: R/AddPlottingStuff.R
This functions adds a few variables which make plotting features easier (and more informative). Since for example every peaks keeps it original ppm value, if you want to plot the groups this function adds the group ppm value. Also sample labels can be added.
1 | AddPlottingStuff(Y.peaks, X.ppm = NULL, groupLabels = NULL)
|
Y.peaks |
data frame obtained from either of the 'getWaveletPeaks', 'PeakAligner' or 'PeakFilling' function. |
X.ppm |
The vector with the ppm values (numeric vector). |
groupLabels |
The groupLabels (numeric or factor). |
Returns a data frame with added plotting variables (groupPPM for aligned features and labels for plotting).
Charlie Beirnaert, charlie.beirnaert@uantwerpen.be
1 2 3 4 5 6 | ## Not run:
# This function works on a data frame resulting from the 'getWaveletPeaks' function
# DetectedPeaks <- getWaveletPeaks(X.ppm= PPM.vector, Y=Y.spec, baselineThresh = 10,nCPU = 4)
Aligned.peaks = PeakAligner = function (Y.peaks = DetectedPeaks)
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.