Plots one minute binned median precursor elution peak width over retention time for each sample.

qc_peak_width(
  data,
  sample,
  intensity,
  retention_time,
  peak_width = NULL,
  retention_time_start = NULL,
  retention_time_end = NULL,
  remove_na_intensities = TRUE,
  interactive = FALSE
)

Arguments

data

a data frame containing at least sample names and protein IDs.

sample

a character column in the data data frame that contains the sample names.

intensity

a numeric column in the data data frame that contains intensities. If remove_na_intensities = FALSE, this argument is not required.

retention_time

a numeric column in the data data frame that contains retention times of precursors.

peak_width

a numeric column in the data data frame that contains peak width information. It is not required if retention_time_start and retention_time_end columns are provided.

retention_time_start

a numeric column in the data data frame that contains the start time of the precursor elution peak. It is not required if the peak_width column is provided.

retention_time_end

a numeric column in the data data frame that contains the end time of the precursor elution peak. It is not required if the peak_width column is provided.

remove_na_intensities

a logical value that specifies if sample/grouping combinations with intensities that are NA (not quantified IDs) should be dropped from the data frame. Default is TRUE since we are usually interested in the peak width of quantifiable data.

interactive

a logical value that specifies whether the plot should be interactive (default is FALSE).

Value

A line plot displaying one minute binned median precursor elution peak width over retention time for each sample.

Examples

if (FALSE) { qc_peak_width( data, sample = r_file_name, intensity = fg_quantity, retention_time = eg_mean_apex_rt, retention_time_start = eg_start_rt, retention_time_end = eg_end_rt ) }