powered by
Run ordinations on a distance matrix.
distmat_ord_table(dm, ord = "PCoA", k = 2L, ...)
A data.frame with columns .sample, .ord, .x, .y, and (optionally) .z.
.sample
.ord
.x
.y
.z
A dist-class distance matrix, as returned from bdiv_distmat() or stats::dist(). Required.
dist
bdiv_distmat()
stats::dist()
Method for reducing dimensionality. Options are:
"PCoA"
Principal coordinate analysis; ape::pcoa().
ape::pcoa()
"UMAP"
Uniform manifold approximation and projection; uwot::umap().
uwot::umap()
"NMDS"
Nonmetric multidimensional scaling; vegan::metaMDS().
vegan::metaMDS()
"tSNE"
t-distributed stochastic neighbor embedding; tsne::tsne().
tsne::tsne()
Multiple/abbreviated values allowed. Default: "PCoA"
Number of ordination dimensions to return. Either 2L or 3L. Default: 2L
2L
3L
Additional arguments for ord.
ord
Other ordination: bdiv_ord_plot(), bdiv_ord_table()
bdiv_ord_plot()
bdiv_ord_table()
library(rbiom) dm <- bdiv_distmat(hmp50, "bray") ord <- distmat_ord_table(dm, "PCoA") head(ord)
Run the code above in your browser using DataLab