Skip to contents

Plot method for build_iknn_graphs_and_selectk

Usage

# S3 method for class 'build_iknn_graphs_and_selectk'
plot(
  x,
  which = c("connect", "edit", "mixing"),
  connect.args = list(),
  edit.args = list(),
  mixing.args = list(),
  par.args = list(),
  ...
)

Arguments

x

Object from build.iknn.graphs.and.selectk().

which

Character vector selecting panels among "connect", "edit", and "mixing".

connect.args, edit.args, mixing.args

Named lists forwarded to panel plots.

par.args

Named list forwarded to graphics::par().

...

Additional arguments, currently ignored.

Value

Invisibly returns x, unchanged, after producing the requested panels. If which is empty, invisibly returns NULL without plotting.

Examples

set.seed(1)
X <- matrix(rnorm(60), ncol = 2)
selected <- build.iknn.graphs.and.selectk(X, k.values = seq.int(2, 4),
    method = "edit",
    verbose = FALSE)
plot(selected, which = "connect")