View source: R/format2maptree.R
format2maptree | R Documentation |
Input taxonomy composition, and feature table. Then select top N high abundance features.Finally, return a maptree(ggraph) object.
format2maptree(otu = otutab, tax = taxonomy, N = 200)
otu |
OTU/ASV table; |
tax |
taxonomy annotation, include feature ID and 7 levels; |
N |
Top N features to show, default 200; |
By default, returns top 8 taxonomy and group mean stackplot The available style include the following:
group: group mean circlize
sample: each sample circlize
ggplot2 object.
Contact: Yong-Xin Liu metagenome@126.com
Zhang, J., Zhang, N., Liu, Y.X., Zhang, X., Hu, B., Qin, Y., Xu, H., Wang, H., Guo, X., Qian, J., et al. (2018). Root microbiota shift in rice correlates with resident time in the field and developmental stage. Sci China Life Sci 61, DOI: https://doi.org/10.1007/s11427-018-9284-4
tax_maptree
# Input feature table, taxonomy and Top N features, and format into mapdata
mapdata = format2maptree(otutab, taxonomy, 200)
# Add mean abundance size and phylum color for maptree
mapadd = tax_maptree(mapdata)
# Saving and plotting maptree
(p = mapadd[[1]])
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.