Learn R Programming

hyperSpec (version 0.100.2)

markpeak: 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

R. Kiselev

Examples

Run this code
plot (chondro [7])
markpeak (chondro [7], 1662)

Run the code above in your browser using DataLab