plot_signals: plot_signals

Description Usage Arguments Details Value Examples

View source: R/plot_signals.R

Description

this funciton plots the peak identified within chromatography.

Usage

1
plot_signals(Autotuner, threshold, sample_index, signals)

Arguments

Autotuner

Autotuner object created following Create_Autotuner() initialization function.

threshold

User input scalar value for the number of standard deviations required to consider a peak to be significant.

sample_index

which of all of the samples should the user plot. Entered in as a numerical index value with length 1.

signals

A vector containing information on where signals are located between samples.

Details

This function plots the chromatography and the matching sliding window signal processing results for each sample. Signal processing functions will be the same color as the chromatography spectra, just a lighter shade and a different type of line. The chromatography will be a solid line, the signal will be a dashed line (lty = 2) with a .5 alpha, and the thersholds will be dotted lines (lty = 3) with alpha values of 3.

Value

Plots signal

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
Autotuner <- readRDS(system.file("extdata/Autotuner.rds",
package="Autotuner"))
lag <- 25
threshold <- 3.1
influence <- 0.1

signals <- lapply(getAutoIntensity(Autotuner),
ThresholdingAlgo, lag, threshold, influence)

plot_signals(Autotuner, threshold, sample_index = seq_len(3), signals = signals)

Autotuner documentation built on Nov. 8, 2020, 5:59 p.m.