View source: R/mdessence-functions.R
embed_new_points | R Documentation |
Embed new points in an MDS diagram
embed_new_points( mds_matrices, new_points = NULL, dist_fn = NULL, old_new_dist_mat = NULL )
mds_matrices |
The output from make_mds_matrices. |
new_points |
A matrix, each row corresponding to a new sample, each column corresponding to a variable. |
dist_fn |
A function taking a matrix as its argument, returns distances between the rows. |
old_new_dist_mat |
A matrix with n_old rows and n_new columns containing distances between the old and new points. If this argument is non-null, these distances will be used instead of computing the distances using dist_fn. |
A matrix containing the embedding locations of the new points. Rows correspond to new samples, columns correspond to embedding dimensions.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.