powered by
Generate significance stars (e.g. '***', '**', '*', '.') from p-values using R's standard definitions.
stars.pval(p.value)
A character vector containing the same number of elements as p-value, with an attribute "legend" providing the conversion pattern.
p-value
numeric vector of p-values
Gregory R. Warnes greg@warnes.net
Mapping from p-value ranges to symbols:
'***'
'**'
'*'
'.'
'' (No symbol)
symnum
p.val <- c(0.0004, 0.0015, 0.013, 0.044, 0.067, 0.24) stars.pval(p.val)
Run the code above in your browser using DataLab