auto_bracket: Adds a bracket automatically with a label to annotate a...

Description Usage Arguments Examples

View source: R/plot_bar2.R

Description

For example, you can label groups of samples in a large bar chart. auto_bracket automatically positions the bracket assuming your list of categories is in the same order as your samples (which they would if they were part of a metadata sheet, or a sample_data in phyloseq)

Usage

1
auto_bracket(plot, matching, y, categories, cex = 2.2, text = matching)

Arguments

plot

a ggplot2 plot.

matching

the category value for the bracket

y

the y coordinate of the bracket.

categories

the vector of categories (one per sample)

cex

the size of the text (default 2.2)

text

the value of the text (if it isn't the same as matching)

Examples

1

jhbadger/cipphyloseq documentation built on May 24, 2019, 2:04 a.m.