plot_edge_assignment: Generates a single column ggplot for a taxonomic assignment...

Description Usage Arguments Value Examples

View source: R/plot_edge_assignment.R

Description

This implementation is built upon ggplot geom_tile.

Usage

1
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

1
2
3
4
5
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"))

MetaComp documentation built on May 2, 2019, 9:25 a.m.