embed_new_points: Embed new points in an MDS diagram

View source: R/mdessence-functions.R

embed_new_pointsR Documentation

Embed new points in an MDS diagram

Description

Embed new points in an MDS diagram

Usage

embed_new_points(
  mds_matrices,
  new_points = NULL,
  dist_fn = NULL,
  old_new_dist_mat = NULL
)

Arguments

mds_matrices

The output from make_mds_matrices.

new_points

A matrix, each row corresponding to a new sample, each column corresponding to a variable.

dist_fn

A function taking a matrix as its argument, returns distances between the rows.

old_new_dist_mat

A matrix with n_old rows and n_new columns containing distances between the old and new points. If this argument is non-null, these distances will be used instead of computing the distances using dist_fn.

Value

A matrix containing the embedding locations of the new points. Rows correspond to new samples, columns correspond to embedding dimensions.


jfukuyama/localBiplots documentation built on Jan. 10, 2023, 3:33 a.m.