Custom Legends with Statistical Comparison Brackets
Add legend with brackets to a ggplot object
Get standard significance symbols from p-values
Add custom legend with brackets to a ggplot
Print a ggplot with vbracket overlay
Print method for ggplot objects with vbracket legend
Validate comparison data frame
Create comparison specification for vbracket
Create a self-contained vbracket legend grob for annotation_custom
Create a custom legend with vertical brackets
Add vbracket legend to ggplot
Save a ggplot with vbracket legend
Add publication-quality custom legends with vertical brackets. Designed for displaying statistical comparisons between groups, commonly used in scientific publications for showing significance levels. Features include adaptive positioning, automatic bracket spacing for overlapping comparisons, font family inheritance, and support for asterisks, p-values, or custom labels. Compatible with 'ggplot2' graphics.