stars.pval: Generate significance stars from p-values

Description Usage Arguments Details Value Author(s) See Also Examples

View source: R/stars.pval.R

Description

Generate significance stars (e.g. '***', '**', '*', '+') from p-values using R's standard definitions.

Usage

1
stars.pval(p.value)

Arguments

p.value

numeric vector of p-values

Details

Mapping from p-value ranges to symbols:

0 - 0.001

'***'

0.001 - 0.01

'**'

0.01 - 0.05

'*'

0.05 - 0.1

'+'

0.1 - 1.0

” (No symbol)

Value

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

Author(s)

Gregory R. Warnes greg@warnes.net

See Also

symnum

Examples

1
2
p.val <- c(0.0004, 0.0015, 0.013, 0.044, 0.067, 0.24)
stars.pval(p.val)

gtools documentation built on May 19, 2017, 11:59 p.m.

Search within the gtools package
Search all R packages, documentation and source code

Questions? Problems? Suggestions? Tweet to @rdrrHQ or email at ian@mutexlabs.com.

Please suggest features or report bugs in the GitHub issue tracker.

All documentation is copyright its authors; we didn't write any of that.