plot.IkNNgraphs: Plot Diagnostics for Intersection k-NN Graph Analysis

View source: R/iknn_selection.R

plot.IkNNgraphsR Documentation

Plot Diagnostics for Intersection k-NN Graph Analysis

Description

Plot Diagnostics for Intersection k-NN Graph Analysis

Usage

## S3 method for class 'IkNNgraphs'
plot(
  x,
  type = "diag",
  diags = c("edist", "edge", "deg"),
  with.pwlm = TRUE,
  with.lmin = FALSE,
  breakpoint.col = "blue",
  lmin.col = "gray",
  k = NA,
  mar = c(2.5, 2.5, 0.5, 0.5),
  mgp = c(2.5, 0.5, 0),
  tcl = -0.3,
  xline = 2.4,
  yline = 3.15,
  ...
)

Arguments

x

A list with k.values, edit.distances, n.edges.in.pruned.graph, and js.div.

type

Character string. Only "diag" is currently supported.

diags

Diagnostic panels. The supported combination is c("edist", "edge", "deg").

with.pwlm

Logical. If TRUE, overlays smoothed trend fits.

with.lmin

Logical. If TRUE, shows local-minimum vertical lines.

breakpoint.col

Color for breakpoint vertical lines.

lmin.col

Color for local-minima vertical lines.

k

Optional k to highlight. Reserved for legacy compatibility.

mar, mgp, tcl, xline, yline

Base graphics controls.

...

Additional arguments passed to plot.

Value

Invisibly returns TRUE.


dgraphs documentation built on Aug. 21, 2026, 1:08 a.m.