autoplot.collection: Plot a collection of spectra in their current processing...

Description Usage Arguments Details Value

View source: R/autoplot.R

Description

Plot a collection of spectra in their current processing state.

Usage

1
2
## S3 method for class 'collection'
autoplot(object, type = "raw", offset_x = 0, offset_y = 0, ...)

Arguments

object

A collection object.

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.

Details

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

Value

a ggplot object


CVUA-RRW/tidySpectR documentation built on April 13, 2021, 11:41 a.m.