- labels
Character vector of group names
- colors
Character vector of colors for each group
- comparisons
Data frame with columns: group1, group2, label
- x
Numeric. X position of legend (0-1, in npc units)
- y
Numeric. Y position of legend (0-1, in npc units)
- width
Numeric. Width of legend box
- height
Numeric. Height of legend box
- title
Character. Legend title (optional)
- text_size
Numeric. Font size for legend labels (default 10)
- text_family
Character. Font family (e.g., "sans", "serif", "mono", "Helvetica", "Times")
- text_face
Character. Font face: "plain", "bold", "italic", "bold.italic" (default "plain")
- title_size
Numeric. Font size for title (default 11)
- title_face
Character. Font face for title (default "bold")
- sig_size
Numeric. Font size for significance symbols (default 11)
- sig_face
Character. Font face for significance symbols (default "plain")
- output_width
Numeric. Output figure width in inches (optional, for METHOD 2)
- output_height
Numeric. Output figure height in inches (optional, for METHOD 2)