stars_pval: Generate significance stars from p-values

Description Usage Arguments Details Value Author(s) Examples

Description

Generate significance stars from p-values using R's standard definitions.

Usage

1
stars_pval(p_value)

Arguments

p_value

A numeric vector of p-values

Details

Mapping from p_value ranges to symbols:

Value

A character vector containing the same number of elements as p-value, with an attribute "legend" providing the conversion pattern.

Author(s)

Tiago Olivoto tiagoolivoto@gmail.com

Examples

1
2
p_vals <- c(0.01, 0.043, 0.1, 0.0023, 0.000012)
stars_pval(p_vals)

metan documentation built on Nov. 10, 2021, 9:11 a.m.