tsne_phyloseq | R Documentation |
Inputs a phyloseq-class
object to plot the t-SNE of a
treatment or set of treatments.
tsne_phyloseq(phyloseq_obj, treatment, method = 'bray', perplexity = 10,
circle = TRUE, labels = NULL, colors = 'default')
phyloseq_obj |
A |
treatment |
Column name as a string or number in the
|
method |
the distance measurement algorithm to use, match to "euclidean", "manhattan", "canberra", "clark", "bray", "kulczynski", "jaccard", "gower", "altGower", "morisita", "horn", "mountford", "raup", "binomial", "chao", "cao" or "mahalanobis". |
perplexity |
similar to selecting the number of neighbors to consider
in decision making (should not be bigger than 3 * perplexity < nrow(X) - 1,
see |
circle |
If TRUE, a |
labels |
Column name as a string or number in the
|
colors |
Name of a color set from the RColorBrewer package or a vector palette of R-accepted colors. |
ggplot-object
Rtsne
tsne_phyloseq(soil_column,
treatment = c('Matrix', 'Treatment'), perplexity = 8)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.