pval2lab: Creator of significance labels

View source: R/pval2lab.R

pval2labR Documentation

Creator of significance labels

Description

Creates significance labelings from p values.

Usage

pval2lab(p)

Arguments

p

Numerics. Raw p values.

Details

In data visualization, traditional combination of symbols such as ** or + are used to present statistical significance. When denoting the p values themselves, there also is a labeling tradition like "p < .05" or "p = .82". pval2lab() creates these labelings from raw p values which are then used for data plotting.

Value

Numerics. Labels for given p values. Extract and use base::names() of the returning vector for symbol labeling such as ** or +.

Examples

  p <- c(0.9, 0.0777, 0.04, 0.009, 0.00002)
  pval2lab(p)


keimochizuki/htb documentation built on June 9, 2025, 10:03 p.m.