You are here

Metacoder: An R package for visualization and manipulation of community taxonomic diversity data

TitleMetacoder: An R package for visualization and manipulation of community taxonomic diversity data
Publication TypeJournal Article
2017
AuthorsFoster, ZSL, Sharpton, TJ, Grünwald, NJ
JournalPLOS Computational Biology
Volume13
Pagination1-15
Date Published02

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.

http://dx.doi.org/10.1371%2Fjournal.pcbi.1005404
10.1371/journal.pcbi.1005404
Citation Key10.1371/journal.pcbi.1005404