Last chance! 50% off unlimited learning
Sale ends in
Summarise your p-values with emoji
emoji_p(
x,
names = c("laughing", "joy", "grin", "smile", "thinking", "poop"),
cutpoints = c(1e-05, 0.001, 0.01, 0.05, 0.1),
legend = FALSE
)
A vector of p-values.
A character vector, for each of the p-value cutoff points.
The names are being passed to emoji()
.
A numeric vector of cutpoints between emojis.
Logical, denotes if the result should be returned with a legend.
This function is vectorized. The input cutpoints
must be 1 shorter than the
names
input. The input cutpoints
should not include 0 or 1 and be in
accending order.
set.seed(1234)
emoji_p(1)
emoji_p(0.1)
emoji_p(0.05)
emoji_p(0.01)
emoji_p(1e-6)
emoji_p(0.01, legend = TRUE)
emoji_p(rbeta(50, 2, 5))
emoji_p(
runif(100, 0, 0.1),
names = c("flexed biceps", "hundred points", "thumbs down", "thumbs up"),
cutpoints = c(0.001, 0.01, 0.05)
)
Run the code above in your browser using DataLab