Description Usage Arguments Details Value Author(s) See Also Examples
Generate significance stars (e.g. '***', '**', '*', '+') from p-values using R's standard definitions.
1 | stars.pval(p.value)
|
p.value |
numeric vector of p-values |
Mapping from p-value ranges to symbols:
'***'
'**'
'*'
'+'
” (No symbol)
A character vector containing the same number of elements as
p-value
, with an attribute "legend" providing the conversion
pattern.
Gregory R. Warnes greg@warnes.net
1 2 | p.val <- c(0.0004, 0.0015, 0.013, 0.044, 0.067, 0.24)
stars.pval(p.val)
|
[1] "***" "**" "*" "*" "." " "
attr(,"legend")
[1] "0 '***' 0.001 '**' 0.01 '*' 0.05 '.' 0.1 ' ' 1"
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.