| exp_p | R Documentation |
Format p-values in scientific notation for plot annotations.
exp_p(p, sci_thresh = 4)
p |
Numeric p-value |
sci_thresh |
Numeric threshold for using scientific notation (number of decimal places) |
This function formats p-values in scientific notation using the format "p = a × 10^b" which is suitable for ggplot2 annotations and maintains proper mathematical formatting.
Expression object for use in plot annotations
# Format p-value for plotting
expr <- exp_p(0.001)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.