plot_peakonly | R Documentation |
plot_peakonly
plots the peaks from a chromatograph.
plot_peakonly(peak_df, title = "Peaks")
peak_df |
a data.frame object. A data frame with 4 columns (Time, X, Y, Peak), ideally the output from top_peaks() or thr_peaks(). |
title |
a string object. Title placed at the top of the plot. Default title "Peaks". |
This function creates a circle plot of the peak intensity vs
the x and y retention times using ggplot
from ggplot2
package \insertCiteggplot2gcxgclab. The size of the circle indicates the
intensity of the peak.
A ggplot object. A circle plot of peak intensity in 2D retention time.
file1 <- system.file("extdata","sample1.cdf",package="gcxgclab")
frame <- extract_data(file1,mod_t=.5)
peaks <- top_peaks(frame$TIC_df, 5)
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.