Skip to contents

Creates a scatter plot showing hop_idx vs function value for all extrema, colored by type and marked by spurious classification. Helps visualize the relationship between stability (hop_idx) and extremal values.

Usage

plot_extrema_stability(
  extrema_df,
  threshold = NULL,
  main = "Extrema Stability vs Function Value"
)

Arguments

extrema_df

Data frame with hop_idx, value, is_max columns

threshold

Optional threshold to draw as reference line

main

Plot title