%0 Journal Article %A Zachary S. L. Foster %A Thomas J. Sharpton %A Niklaus J. Grünwald %T Metacoder: An R Package for Visualization and Manipulation of Community Taxonomic Diversity Data %D 2016 %R 10.1101/071019 %J bioRxiv %P 071019 %X Community-level data, the type generated by an increasing number of metabarcoding studies, is often graphed as stacked bar charts or pie graphs that use color to represent taxa. These graph types do not convey the hierarchical structure of taxonomic classifications and are limited by the use of color for categories. As an alternative, we developed metacoder, an R package for easily parsing, manipulating, and graphing publication-ready plots of hierarchical data. Metacoder includes a dynamic and flexible function that can parse most text-based formats that contain taxonomic classifications, taxon names, taxon identifiers, or sequence identifiers. Metacoder can then subset, sample, and order this parsed data using a set of intuitive functions that take into account the hierarchical nature of the data. Finally, an extremely flexible plotting function enables quantitative representation of up to 4 arbitrary statistics simultaneously in a tree format by mapping statistics to the color and size of tree nodes and edges. Metacoder also allows exploration of barcode primer bias by integrating functions to run digital PCR. Although it has been designed for data from metabarcoding research, metacoder can easily be applied to any data that has a hierarchical component such as gene ontology or geographic location data. Our package complements currently available tools for community analysis and is provided open source with an extensive online user manual.Note: This article was previously submitted as a pre-print: Zachary S. L. Foster, Thomas J. Sharpton, Niklaus J. Grünwald. 2016. Metacoder: An R package for manipulation and heat tree visualization of community taxonomic data from metabar-coding. BioRxiv 071019; doi: http://dx.doi.org/10.1101/071019. %U https://www.biorxiv.org/content/biorxiv/early/2016/12/07/071019.full.pdf