Multidimensional scaling on Spearman rho correlation distance

spearman_rho_mds(X, k = 2)

Arguments

X

the input matrix, where each column is a sample (cell) and each row is a feature (gene)

k

number of latent dimensions, default to 2

Examples

mds <- spearman_rho_mds(t(as.matrix(mtcars))) plot(mds)
text(mds, row.names(mtcars), cex=0.6, pos=4, col="red")