Skip to contents

Visualizes the composition of selected protein groups based on their associated peptides. The function filters the specified protein groups, arranges them, and displays a plot showing the peptides associated with each protein in the group. Peptides are colored according to their classification as unique, discriminating, non-discriminating, or non-significant.

Usage

plot_groups(panalyzer, groupRefs)

Arguments

panalyzer

A data frame containing the results from the panalyzer function. The data frame must include columns such as groupRef, peptideRef, peptideType, proteinRef and proteinType.

groupRefs

A vector of group reference identifiers (groupRef) representing the protein groups to be visualized.

Value

A ggplot object visualizing the selected protein groups and their associated peptides.

Examples

data(example_panalyzer, package = "b10prot")
plot_groups(example_panalyzer, groupRefs = 1:5)