Skip to contents

Plots critical points (maxima, minima, saddles) from continuous analysis.

Usage

critical.points.plot(
  critical_points,
  xlim = c(0, 1),
  ylim = c(0, 1),
  main = "Critical Points Analysis",
  add = FALSE,
  ...
)

Arguments

critical_points

List with maxima, minima, and saddles matrices

xlim

X-axis limits

ylim

Y-axis limits

main

Plot title

add

Logical, whether to add to existing plot

...

Additional arguments passed to plot

Value

Invisible NULL

Examples

if (FALSE) { # \dontrun{
# Create a function with known critical points
f <- function(x, y) x^2 - y^2  # Saddle at origin
gradient <- function(x, y) c(2*x, -2*y)
grid <- create.grid(30)
critical <- find.critical.points.continuous(gradient, grid)
critical.points.plot(critical)
} # }