Description Usage Arguments Value Author(s) Examples
plot the result of hierarchical cluster analysis for the samples
1 2 3 4 5 6 7 8 9 10 11 12 13 14 |
obj |
R object, clustplotClass. |
..., |
additional params, see also |
layout |
character, the layout of tree, see also |
factorNames |
character, default is NULL. |
factorLevels |
list, default is NULL. |
pointsize |
numeric, the size of point, default is 2. |
fontsize |
numeric, the size of text of tiplabel, default is 2.6. |
hjust |
numeric, default is -0.1 |
settheme |
logical, default is TRUE. |
the figures of hierarchical cluster.
Shuangbin Xu
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | #don't run in examples
#library(phyloseq)
#library(ggtree)
#library(ggplot2)
#data(GlobalPatterns)
#subGlobal <- subset_samples(GlobalPatterns,
# SampleType %in% c("Feces", "Mock", "Ocean", "Skin"))
#hcsample <- get_clust(subGlobal, distmethod="jaccard",
# method="hellinger", hclustmethod="average")
#hc_p <- ggclust(hcsample, layout = "rectangular",
# pointsize=1, fontsize=0,
# factorNames=c("SampleType")) +
# theme_tree2(legend.position="right",
# plot.title = element_text(face="bold", lineheight=25,hjust=0.5))
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.