my_bracket: Adds a bracket with a label to annotate a ggplot2 plot

Description Usage Arguments Examples

View source: R/plot_bar2.R

Description

For example, you can label groups of samples in a large bar chart. More typically you will use auto_bracket() which automatically sets the x and xend based on a category label.

Usage

1
my_bracket(plot, text, x, xend, y, cex = 2.2)

Arguments

plot

a ggplot2 plot.

text

the text to label the bracket with.

x

the x coordinate of the start of the bracket.

xend

the x coordinate of the end of the bracket.

y

the y coordinate of the bracket.

cex

the size of the text (default 2.2)

Examples

1

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