plot_edge_assignment {MetaComp}R Documentation

Generates a single column ggplot for a taxonomic assignment table and also outputs a PDF.

Description

This implementation is built upon ggplot geom_tile.

Usage

plot_edge_assignment(assignment, level, plot_title, column_title, filename)

Arguments

assignment

The EDGE-like assignment table.

level

The taxonomic level to plot (i.e., family, strain, etc...).

plot_title

The plot title, e.g., "Project XX, Run YY".

column_title

The column title.

filename

The PDF file name mask.

Value

the ggplot2 plot.

Examples

pa_fpath <- system.file("extdata", "HMP_even//allReads-pangia.list.txt", package="MetaComp")
pangia_assignment = load_edge_assignment(pa_fpath, type = "pangia")

plot_edge_assignment(pangia_assignment, "phylum", "Pangia", "HMP Even",
                                                     file.path(tempdir(), "assignment.pdf"))


[Package MetaComp version 1.1.2 Index]