format_pvalue: Format P-value

View source: R/splot-labels.R

format_pvalueR Documentation

Format P-value

Description

Formats a p-value with specified decimal places and prefix.

Usage

format_pvalue(p, digits = 3, prefix = "p=")

Arguments

p

Numeric p-value.

digits

Number of decimal places.

prefix

Prefix string (e.g., "p=").

Value

Formatted p-value string.


cograph documentation built on April 1, 2026, 1:07 a.m.