plot_eic {gcxgclab}R 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 (Wickham 2016).

Value

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

References

Wickham H (2016). ggplot2: Elegant Graphics for Data Analysis. Springer-Verlag New York. ISBN 978-3-319-24277-4, https://ggplot2.tidyverse.org.

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


[Package gcxgclab version 1.0.1 Index]