powered by
phase_shift shifts the phase of the chromatogram.
phase_shift
phase_shift(data, shift)
A data.frame object. A list of two data frames. A TIC data frame and an MS data frame.
a list object. Data extracted from a cdf file, ideally the output from extract_data().
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.
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')
Run the code above in your browser using DataLab