These functions are kept for backward compatibility; you should switch
to label_pvalue()
for new code.
Usage
pvalue_format(
accuracy = 0.001,
decimal.mark = ".",
prefix = NULL,
add_p = FALSE
)
pvalue(x, accuracy = 0.001, decimal.mark = ".", prefix = NULL, add_p = FALSE)
Arguments
- accuracy
A number to round to. Use (e.g.)
0.01
to show 2 decimal places of precision. IfNULL
, the default, uses a heuristic that should ensure breaks have the minimum number of digits needed to show the difference between adjacent values.Applied to rescaled data.
- decimal.mark
The character to be used to indicate the numeric decimal point.
- prefix
A character vector of length 3 giving the prefixes to put in front of numbers. The default values are
c("<", "", ">")
ifadd_p
isTRUE
andc("p<", "p=", "p>")
ifFALSE
.- add_p
Add "p=" before the value?