Takes an experiment with a set of boxcar spectra and plots them as a single spectrum, colouring the peaks based on their origin. See the MSnbaseBoxCar vignette for example code.

bc_plot(x)

bc_plotly(x)

Arguments

x

An MSnExp object containing a set of boxcar spectra.

Value

Used for its side effects. Invisibly returns a ggplot or plotly object.