Skip to contents

Finds the distribution apex (mode of the kernel density estimate, per http://ianmadd.github.io/pages/PeakDensityDistribution.html) and annotates it on the histogram panel.

Usage

plot_pepmass(input, title, xlimits = NULL)

Arguments

input

A pep_all-shaped data frame with a Mass column.

title

Plot title.

xlimits

Optional length-2 numeric vector overriding the x-axis limits on both panels.

Value

A ggpubr-arranged figure (boxplot above a density histogram with an "Apex = ..." annotation) with the title annotated above.

Examples

if (FALSE) { # \dontrun{
plot_pepmass(pep_all, title = "All peptides")
} # }