| stars_pval | R Documentation |
Generate significance stars (e.g. '***', '**', '*', 'ns') from p-values.
Inspired by gtools::stars.pval() with extra arguments and flexibility
and different default.
stars_pval(
p.value,
cutpoints = c(0, 0.001, 0.01, 0.05, 1),
symbols = c("***", "**", "*", "ns"),
corr = FALSE,
na = FALSE,
...
)
p.value |
numeric vector of p-values |
... |
any parameters passed to |
Mapping from p-value ranges to symbols:
'***'
'**'
'*'
'ns'
A character vector containing the same number of elements as
p-value, with an attribute "legend" providing the conversion pattern.
Mark Chen mjchen.gene@gmail.com
symnum
p.val <- c(0.0004, 0.0015, 0.013, 0.044, 0.067, 0.24) stars_pval(p.val)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.