Skip to contents

Positive and negative ion modes are pooled. One density plot with a curve per adduct form (top `top_n`) plus an integrated `"others"` curve in grey. Excludes `unannotated`, `isotope`, `fragment`, `adduct`, `[M+2Na-H]+`, and other non-adduct labels.

Usage

plot_ratio_shift_by_ion_form(
  ratio_shift_df,
  base_size = 6,
  top_n = 10L,
  xlim = c(-1, 1)
)

Arguments

ratio_shift_df

Output of [build_instrument_ratio_shift_data()].

base_size

Base ggplot2 font size.

top_n

Number of adduct forms to plot (default 10).

xlim

Fixed x-axis limits for ratio shift.

Value

A ggplot object.