AddPlottingStuff: Add plotting variables

Description Usage Arguments Value Author(s) Examples

View source: R/AddPlottingStuff.R

Description

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.

Usage

1
AddPlottingStuff(Y.peaks, X.ppm = NULL, groupLabels = NULL)

Arguments

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).

Value

Returns a data frame with added plotting variables (groupPPM for aligned features and labels for plotting).

Author(s)

Charlie Beirnaert, charlie.beirnaert@uantwerpen.be

Examples

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)

speaq2 documentation built on May 6, 2017, 4:09 a.m.