pval_to_stars | R Documentation |
Convert p-values to stars according to map legend p <= 0.001'', 0.001 '', 0.01 '**', 0.05 ''
pval_to_stars(pvals)
pvals |
A numeric vector of pvals |
A character vector with stars representing p-values
runif(10,min = 0, 0.06)
pval_to_stars(c(0.0001, 0.00012, 0.002, 0.049, 0.05, 0.06))
Output: '**** *** ** * *'
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.