View source: R/plotSimilarity.R
plotSimilarity | R Documentation |
Plot similarity matrix between samples
plotSimilarity(
dataset = NULL,
rank = NULL,
dist_method = "bray",
weighted = F,
clust_method = "ward.D2",
clust_num = 2,
r_cutoff = 0
)
dataset |
MicroVis dataset. Defaults to the active dataset |
rank |
Rank of features to use for similarity calculation |
dist_method |
Dissimilarity calculation method. One of either "pearson", "spearman", bray", "euclidean", "jaccard", "unifrac", "manhattan", "canberra", "clark", "kulczynski", "gower", "altGower", "morisita", "horn", "mountford", "raup", "binomial", "chao", "cao", "mahalanobis", "chisq" or "chord". Defaults to "bray" |
weighted |
If performing unifract distance, whether to use weighted or unweighted unifrac. Defults to FALSE (unweighted) |
clust_method |
Clustering method. One of either "ward.D", "ward.D2", "single", "complete", "average" (= UPGMA), "mcquitty" (= WPGMA), "median" (= WPGMC) or "centroid" (= UPGMC). Defaults to "ward.D2" |
clust_num |
Number of clusters to try to make |
r_cutoff |
R-values with absolute value below this cutoff will be shaded white. Defaults to 0 |
Similarity matrix heatmap
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.