emoji_p | R Documentation |
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
)
x |
A vector of p-values. |
names |
A character vector, for each of the p-value cutoff points.
The names are being passed to |
cutpoints |
A numeric vector of cutpoints between emojis. |
legend |
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("biceps", "hundred", "thumbs_down", "thumbs_up"),
cutpoints = c(0.001, 0.01, 0.05)
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.