plot_chr | R Documentation |
plot_chr
plots TIC data for chromatogram.
plot_chr(data, scale = "log", dim = 2, floor = -1, title = "Intensity")
data |
a list object. Data extracted from a cdf file, ideally the output from extract_data(). |
scale |
a string object. Either 'linear' or 'log'. log refers to logarithm base 10. Default is log scale. |
dim |
a integer object. The time dimensions of the plot, either 1 or 2. Default is 2. |
floor |
a float object. The floor value for plotting. Values below floor will be scaled up. Default for linear plotting is 0, default for log plotting is 10^3. |
title |
a string object. Title placed at the top of the plot. Default title "Intensity". |
This function creates a contour plot using of TIC data vs the x and
y retention times using ggplot
from ggplot2 package
\insertCiteggplot2gcxgclab.
A ggplot object. A contour plot of TIC data plotted in two dimensional retention time.
file <- system.file("extdata","sample1.cdf",package="gcxgclab")
frame <- extract_data(file,mod_t=.5)
plot_chr(frame, title='Raw Data', scale="linear")
plot_chr(frame, title='Log Intensity')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.