cmdscale_landmarks: Perform MDS on landmarks and project other samples to the...

Description Usage Arguments Value Examples

View source: R/cmdscale_landmarks.R

Description

Perform MDS on landmarks and project other samples to the same space

Usage

1
cmdscale_landmarks(dist_2lm, ndim = 3, rescale = TRUE, ...)

Arguments

dist_2lm

Distance matrix between the landmarks and all the samples in original dataset

ndim

The number of dimensions

rescale

Whether or not to rescale the final dimensionality reduction (recommended)

...

Extra params to pass to irlba::irlba()

Value

The dimensionality reduction in the form of a ncol(dist_2lm) by ndim matrix.

Examples

1
2
3
4
library(Matrix)
x <- as.matrix(iris[,1:4])
dist_2lm <- select_landmarks(x)
cmdscale_landmarks(dist_2lm)

lmds documentation built on Sept. 27, 2019, 5:03 p.m.