Skip to contents

Retrieve graphs (NNs) from SpatialMap objects by name, or, if no value is passed, list an object's NNs as a character. NN names are composed of:

  • The Representations-methods used to generate the graph

  • What method was used to generate the graph, e.g. "knn"

  • The k, or eps parameter passed to the method above

Usage

NNs(x, value)

# S4 method for Analysis,missing
NNs(x, value)

# S4 method for Analysis,character
NNs(x, value)

# S4 method for SpatialMap,character
NNs(x, value)

# S4 method for SpatialMap,missing
NNs(x, value)

Arguments

x

An object

value

The name of an NN, e.g. "spatial_knn_10".

Value

An NN object, or a vector specifying NN names

Scroll to top