markpeak: Mark peak Marks location of the _first_ spectrum at the data...

View source: R/mark.peak.R

markpeakR Documentation

Mark peak Marks location of the first spectrum at the data point closest to the specified position on the current plot.

Description

Mark peak

Marks location of the first spectrum at the data point closest to the specified position on the current plot.

Usage

markpeak(spc, xpos, col = "red")

Arguments

spc

the hyperSpec object

xpos

position of the peak(s) in current x-axis units

col

color of the markers and text

Author(s)

R. Kiselev

Examples

plot (chondro [7])
markpeak (chondro [7], 1662)

hyperSpec documentation built on May 29, 2024, 7:28 a.m.