plot_bar2: Plot bar 2

Description Usage Arguments Value

View source: R/microbiome_helpers.R

Description

An alternate version of phyloseq::plot_bar

Usage

1
2
3
plot_bar2(physeq, rank = "Phylum", glom = TRUE, x = "Sample",
  xlabs = NULL, position = "stack", palette = "iwanthue",
  pal_seed = 5858)

Arguments

physeq

valid phyloseq object

rank

character, the taxa rank to plot, must be one of rank_names(physeq)

glom

logical, should the taxa be aggregated at the level of rank

x

character, the sample variable to plot on the x-axis

xlabs

character vector, labels to use on the x-axis

position

character, for geom_bar

palette

Either a valid RColorBrewer palette or "iwanthue" to generate a random palette

pal_seed

Seed for generating palette. Set to NULL for random

Value

a ggplot object


mworkentine/mattsUtils documentation built on May 23, 2019, 11:58 a.m.