phase_shift | R Documentation |
phase_shift
shifts the phase of the chromatogram.
phase_shift(data, shift)
data |
a list object. Data extracted from a cdf file, ideally the output from extract_data(). |
shift |
a float object. The number of seconds to shift the phase by. |
This function shifts the phase of the chromatogram up or down by the specified number of seconds.
A data.frame object. A list of two data frames. A TIC data frame and an MS data frame.
file <- system.file("extdata","sample1.cdf",package="gcxgclab")
frame <- extract_data(file,mod_t=.5)
shifted <- phase_shift(frame, -.2)
plot_chr(shifted, title='Shifted')
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.