powered by
Perform MDS on landmarks and project other samples to the same space
cmdscale_landmarks(dist_2lm, ndim = 3, rescale = TRUE, ...)
Distance matrix between the landmarks and all the samples in original dataset
The number of dimensions
Whether or not to rescale the final dimensionality reduction (recommended)
Extra params to pass to irlba::irlba()
irlba::irlba()
The dimensionality reduction in the form of a ncol(dist_2lm) by ndim matrix.
ncol(dist_2lm)
ndim
# NOT RUN { library(Matrix) x <- as.matrix(iris[,1:4]) dist_2lm <- select_landmarks(x) cmdscale_landmarks(dist_2lm) # }
Run the code above in your browser using DataLab