plot_signals {Autotuner} | R Documentation

## plot_signals

### Description

this funciton plots the peak identified within chromatography.

### Usage

    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

    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)

[Package Autotuner version 1.2.0 Index]