Overlay a neighborSet onto a set of xy coordinates

overlay_neighbors(x, y, indices, ...)

overlay_shared_neighbors(x, y, indices, type = "rank", ...)

Arguments

x, y

numeric vectors to produce segments from

indices

a neighborSet index matrix

...

additional arguments to pass to ggplot2::geom_segment

type

Algorithm used to compute shared nearest neighbors graph

See also