Skip to contents

Creates visualizations showing the distribution of function values and neighborhood characteristics of detected extrema.

Usage

# S3 method for class 'gflow_local_extrema'
plot(x, ...)

Arguments

x

An object of class "gflow_local_extrema".

...

Additional graphical parameters passed to plotting functions.

Value

Invisibly returns x.

Details

This function creates a two-panel plot:

  • Left panel: Function values at extrema, ordered by rank

  • Right panel: Neighborhood radii for each extremum

Point sizes in both panels are proportional to neighborhood sizes.

Examples

extrema <- list(
  vertices = c(4L, 2L),
  values = c(5, 3),
  radii = c(2, 1),
  neighborhood_sizes = c(3L, 2L),
  is_maxima = c(TRUE, TRUE),
  type = c("Maximum", "Maximum"),
  labels = c("M1", "M2"),
  neighborhood_vertices = list(c(3L, 5L, 2L), c(1L, 3L)),
  detect.maxima = TRUE
)
class(extrema) <- "gflow_local_extrema"

plot(extrema)