Builds a barplot showing how many IDs were detected in 1, 2, 3, …
replicates per Condition, for a single pep_all-shaped data frame. Works for
Peptides, Sequences, or Proteins by dispatching on id_col. Call it once per
length subset (e.g. all peptides, then length-selected peptides) to get an
individual plot for each.
Arguments
- df
A
pep_all-shaped data frame (e.g.pep_all, or the length-filteredpep_short).- id_col
Column defining the ID level:
"Peptide","Sequence", or"Accession".- title
Plot title. When
NULL(default), a generic id-based label ("Nb Peptides"etc.) is used.- shortpep_range
Length-2 numeric vector
c(min, max); retained for API compatibility (no longer used to build a subtitle now that all/short are plotted separately).- value
Y-axis mode:
"count"(default, absolute number of IDs) or"percent"(the share of each Condition's IDs found in 1, 2, … replicates, stacked to 100%).