View source: R/plot_functions.R
tsne_pq | R Documentation |
Compute tSNE position of samples from a phyloseq object
tsne_pq(physeq, method = "bray", dims = 2, theta = 0, perplexity = 30, ...)
physeq |
(required): a |
method |
A method to calculate distance using |
dims |
(Int) Output dimensionality (default: 2) |
theta |
(Numeric) Speed/accuracy trade-off (increase for less accuracy), set to 0.0 for exact TSNE (default: 0.0 see details in the man page of |
perplexity |
(Numeric) Perplexity parameter (should not be bigger than 3 * perplexity < nrow(X) - 1, see details in the man page of |
... |
Other arguments passed on to |
A list of element including the matrix Y containing the new representations for the objects. See ?Rtsne::Rtsne() for more information
if (requireNamespace("Rtsne")) {
res_tsne <- tsne_pq(data_fungi)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.