cmdscale_landmarks {lmds} | R Documentation |
Perform MDS on landmarks and project other samples to the same space
Description
Perform MDS on landmarks and project other samples to the same space
Usage
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 |
Value
The dimensionality reduction in the form of a ncol(dist_2lm)
by ndim
matrix.
Examples
library(Matrix)
x <- as.matrix(iris[,1:4])
dist_2lm <- select_landmarks(x)
cmdscale_landmarks(dist_2lm)
[Package lmds version 0.1.0 Index]