top_peaks | R Documentation |
top_peaks
finds the top N highest peaks.
top_peaks(TIC_df, N)
TIC_df |
a data.frame object. Data frame with 4 columns (Overall Time Index, RT1, RT2, TIC), ideally the output from create_df(), or the first data frame returned from extract_data(), $TIC_df. |
N |
int object. The number of top peaks to be found in the sample. N should be an integer >=1. Default suggestion is N = 20. |
This function finds the top N peaks in intensity in the sample.
A data.frame object. A data frame with 4 columns (Time, X, Y, Peak) with the top N peaks, with their time coordinates.
file1 <- system.file("extdata","sample1.cdf",package="gcxgclab")
frame <- extract_data(file1,mod_t=.5)
peaks <- top_peaks(frame$TIC_df, 5)
plot_peak(peaks, frame, title="Top 20 Peaks")
plot_peakonly(peaks,title="Top 20 Peaks")
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.