Description Usage Arguments Value Examples
View source: R/cmdscale_landmarks.R
Perform MDS on landmarks and project other samples to the same space
1 | cmdscale_landmarks(dist_2lm, ndim = 3, rescale = TRUE, ...)
|
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 |
The dimensionality reduction in the form of a ncol(dist_2lm)
by ndim
matrix.
1 2 3 4 | library(Matrix)
x <- as.matrix(iris[,1:4])
dist_2lm <- select_landmarks(x)
cmdscale_landmarks(dist_2lm)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.