Creates a ChargeSimple column ("+1" vs ">= +2"), then renders a
ggpubr::ggboxplot() faceted by charge group.
Usage
plot_qc_box(df, y_var, title)
Arguments
- df
A pep_all-shaped data frame with Charge and y_var columns.
- y_var
Column name (string) to plot on the y-axis, e.g. "Score" or
"ppm".
- title
Plot title.
Value
A ggpubr boxplot figure, faceted by ChargeSimple.
Examples
if (FALSE) { # \dontrun{
plot_qc_box(pep_all, "Score", "Score boxplot")
plot_qc_box(pep_all, "ppm", "Mass error boxplot")
} # }