Optional
are we looking for maxima or minima, default true
should we look for the closest min / max, default true
options of the peak shape fit
x variable label, by default 'x'
y variable label, by default 'y'
are we looking for maxima or minima, default true