View source: R/getPrincipalCoordinates.R
getPrincipalCoordinates | R Documentation |
Calculate the principal coordinates of the samples in an ftmsData object. Uses vegdist
to calculate pairwise distances between samples, and pcoa
to calculate the principal coordinates.
getPrincipalCoordinates(ftmsObj, dist_metric = "bray", n_dims = 5)
ftmsObj |
object of type |
dist_metric |
distance metric for computing pairwise distances between all samples. See |
n_dims |
number of dimensions to return, default is 5. Must be less than the number of samples in |
data.frame of coordinates where each sample is a row
vegdist, pcoa
coords <- getPrincipalCoordinates(exampleProcessedPeakData, dist_metric="jaccard", n_dims=7)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.