ion_bar_plot: Make a bar plot of fragments per ion

View source: R/ion_bar_plot.R

ion_bar_plotR Documentation

Make a bar plot of fragments per ion

Description

Generates a bar plot of counts of all fragments, fragments without isotopes, and fragments with unique charge states per ion.

Usage

ion_bar_plot(MatchedPeaks, Interactive = FALSE)

Arguments

MatchedPeaks

Object of the matched_peaks class from get_matched_peaks. Default is NULL. Required.

Interactive

A logical to determine whether the plot should be interactive or not. Default is FALSE.

Examples

## Not run: 

# Test with bottom up data
BU_Peak <- get_peak_data(ScanMetadata = BU_ScanMetadata, ScanNumber = 31728)
BU_Match <- get_matched_peaks(ScanMetadata = BU_ScanMetadata, PeakData = BU_Peak)

# Make the plot interactive or not
ion_bar_plot(MatchedPeaks = BU_Match)
ion_bar_plot(MatchedPeaks = BU_Match, Interactive = TRUE)


## End(Not run)


EMSL-Computing/pspecterlib documentation built on Jan. 28, 2024, 8:13 p.m.