Description Usage Arguments Value Examples
QQ-plot a vector of p-values.
1 2 3 4 5 6 7 8 |
x |
A numeric vector with elements in (0, 1). |
labels |
A character vector of length at most |
controls |
Number of controls in the tests. |
cases |
Number of cases in the tests. |
lambda_correct |
A flag. Apply a correction to make the slope of the fitted line equal to 1. |
aes_opts |
A list. Aesthetic options for the plot. The list has two named elements.
|
A ggplot2::ggplot()
.
1 2 3 4 5 6 7 8 9 10 11 | set.seed(1)
pvals <- runif(999) ^ (4 / 3)
qqplot_pvals(pvals,
controls = 500, cases = 499,
aes_opts = list(null_alpha = 0.5, fit_alpha = 0.5)
)
qqplot_pvals(pvals,
labels = c("a", "b", "c"),
controls = 500, cases = 499,
lambda_correct = TRUE
)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.