| add_bracket_comparisons | R Documentation |
Helper function to create a properly formatted comparison data frame for use with guide_legend_bracket().
add_bracket_comparisons(..., groups1 = NULL, groups2 = NULL, labels = NULL)
... |
Named arguments or list of comparisons. Each comparison can be:
|
groups1 |
Character vector of first groups to compare. |
groups2 |
Character vector of second groups to compare. |
labels |
Character vector of significance labels. |
A data frame with columns: group1, group2, label
# Using individual vectors
add_bracket_comparisons(
groups1 = c("A", "C"),
groups2 = c("B", "D"),
labels = c("***", "ns")
)
# Using ... with vectors
add_bracket_comparisons(
c("A", "B", "***"),
c("C", "D", "ns")
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.