Learn R Programming

hyperSpec (version 0.98-20161118)

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

Description

Mark peak

Marks location of the first spectrum at the data point closes 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

Examples

Run this code
# NOT RUN {
plot (chondro [7])
markpeak (chondro [7], 1662)
# }

Run the code above in your browser using DataLab