R/autoplot.R
autoplot.collection.Rd
Plot a collection of spectra in their current processing state.
# S3 method for collection autoplot(object, type = "raw", offset_x = 0, offset_y = 0, ...)
object | A |
---|---|
type | A single character string for the type of plot to produce with values "raw", "average" or "label_average". See details. |
offset_x | x axis offset value (in the axis unit) for the spectra |
offset_y | y axis offset value (in the axis unit) for the spectra |
... | Not currently used. |
a ggplot
object
A raw
plot displays individual spectra, combine it with offset values
to separate individual spectra along the x and/or y axes.
An average
plot will represent only the average spectra and the range of
values within each bin. Offset values will be ignored.
A label_average
plot will display the label-average spectrum and range of values
within each label. Use offset values to separate the spectra.
Further plot customization is possible (although limited) by passing ggplot methods to the returned object