plot_eic: Plots the EICs

View source: R/find_eic.R

plot_eicR Documentation

Plots the EICs

Description

plot_eic Plots the EICs

Usage

plot_eic(eic, title = "EIC", dim = 1)

Arguments

eic

a data.frame object. A data frame of the times and intensity values of the EIC of interest, ideally the output of find_eic().

title

a string object. Title placed at the top of the plot. Default title "EIC".

dim

a integer object. The time dimensions of the plot, either 1 or 2. Default is 1.

Details

This function produces a scatter plot of the overall time index vs the intensity values at a given mass of interest using ggplot from ggplot2 package \insertCiteggplot2gcxgclab.

Value

A ggplot object. A scatter plot of the overall time index vs the intensity values at a given mass of interest.

References

\insertAllCited

Examples

file1 <- system.file("extdata","sample1.cdf",package="gcxgclab")
frame <- extract_data(file1,mod_t=.5)
eic <- find_eic(frame, MOI=92.1397,tolerance=0.005)
plot_eic(eic,dim=1,title='EIC for MOI 92.1397')
plot_eic(eic,dim=2,title='EIC for MOI 92.1397')


gcxgclab documentation built on May 29, 2024, 5:33 a.m.