View source: R/tax_wordcloud.R
tax_wordcloud | R Documentation |
Input otutab, metadata and taxonomy or phyloseq object; plot wordcloud to visualize compositional microbial community data
tax_wordcloud(
otu = otutab,
map = metadata,
tax = taxonomy,
ps = NULL,
j = "Phylum",
group = "Group",
facet = F,
abundance = T,
rand = 1
)
otu |
OTU/ASV table; |
map |
Sample metadata; |
tax |
taxonomy file; |
j |
taxonomy annotation classification level, typical including "Phylum","Class","Order","Family","Genus" |
group |
group ID; |
facet |
FALSE/F, if TURE/T, facet with Phylum in one of the "Class","Order","Family","Genus" level |
abundance |
TRUE/T, show abundance in label, turn off in FLASE/F; |
rand |
set reproducible layout, default 1, can set any integer; |
By default, input phyloseq object include metadata, otutab and metadata The available classification level include the following:
most used classification level was Phylum
other classification level include: Class, Order, Family, Genus
list object including plot and data table
Contact: Tao Wen 2018203048@njau.edu.cn, Yong-Xin Liu yxliu@genetics.ac.cn
Yong-Xin Liu, Yuan Qin, Tong Chen, Meiping Lu, Xubo Qian, Xiaoxuan Guo & Yang Bai. A practical guide to amplicon and metagenomic analysis of microbiome data. Protein Cell, 2020(41), 1-16, DOI: https://doi.org/10.1007/s13238-020-00724-8
tax_stackplot tax_circlize tax_maptree
# Input feature table, metadata, taxonomy, group column name, and taxonomic level
# Output each group Phylum wordcloud with relative abundance in bracket
tax_wordcloud(otu = otutab, map = metadata, tax = taxonomy, group = "Group", j = "Phylum")
# Input feature table, metadata, taxonomy, group column name, and taxonomic level
# in Class, facet by Phylum, not show abundance, layout in seed 2
tax_wordcloud(otu = otutab, map = metadata, tax = taxonomy, group = "Group", j = "Class", facet = T, abundance = F, rand = 2)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.