Skip to contents

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",
  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.

mar, mgp, tcl, xline, yline

Base graphics controls.

...

Additional arguments passed to plot.

Value

Invisibly returns TRUE.

Examples

diagnostics <- structure(list(k.values = 2:4, edit.distances = c(0.3, 0.2),
  n.edges.in.pruned.graph = c(6, 8, 10), js.div = c(0.1, 0.05)),
  class = "IkNNgraphs")
plot(diagnostics, with.pwlm = FALSE)