Description Usage Arguments Examples
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)
1 | auto_bracket(plot, matching, y, categories, cex = 2.2, text = matching)
|
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) |
1 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.