vbracket: Custom Legends with Statistical Comparison Brackets

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.

Getting started

Package details

AuthorYoshiaki Sato [aut, cre] (ORCID: <https://orcid.org/0000-0003-3375-5189>)
MaintainerYoshiaki Sato <h20gg702@outlook.jp>
LicenseMIT + file LICENSE
Version1.0.2
URL https://github.com/h20gg702/vbracket
Package repositoryView on CRAN
Installation Install the latest version of this package by entering the following in R:
install.packages("vbracket")

Try the vbracket package in your browser

Any scripts or data that you put into this service are public.

vbracket documentation built on Jan. 7, 2026, 9:06 a.m.