format_pvalue_smart: Smart P-value Formatting

View source: R/legend_annotation_utils.R

format_pvalue_smartR Documentation

Smart P-value Formatting

Description

Smart P-value Formatting

Usage

format_pvalue_smart(
  p_values,
  format = "smart",
  stars = TRUE,
  thresholds = c(0.001, 0.01, 0.05),
  star_symbols = c("***", "**", "*")
)

Arguments

p_values

Numeric vector of p-values

format

Character string specifying format type

stars

Logical, whether to include star symbols

thresholds

Numeric vector of significance thresholds

star_symbols

Character vector of star symbols

Value

Character vector of formatted p-values


ggpicrust2 documentation built on Aug. 26, 2025, 1:07 a.m.