Learn R Programming

EmbedSOM (version 2.2)

MSTCoords: Add MST-style embedding coordinates to the map

Description

Add MST-style embedding coordinates to the map

Usage

MSTCoords(
  dim = NULL,
  dist.method = NULL,
  distFn = function(x) x,
  layoutFn = igraph::layout_with_kk
)

Value

a function that transforms the map, usable as coordsFn parameter

Arguments

dim

Dimension of the result (passed to layoutFn)

dist.method

The method to compute distances, passed to stats::dist() as parameter method

distFn

Custom transformation function of the distance matrix

layoutFn

iGraph-compatible graph layouting function (default igraph::layout_with_kk())