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

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

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