Description Usage Arguments Value Author(s) Examples
QQ plot of observed P-values vs expected P-values, using the empirical (permutation-based) expected p-value distribution. This empirical-based expected p-value distribution no longer depends on an assumption that the Fisher's Exact two-tailed p-values are uniformly distributed under the null. For a given matrix, the permutation-based expected distribution is plotted relative to the observed order statistic to get the permutation-based QQ plot.
1 |
P.perm |
Expected P-values from NULL distribution, which is generated through permutation in our example. |
P.observed |
Observed P-values from true case/control assignment. |
adjust.xy |
An option to have the x-axis and y-axis adjusted based on their own range in the plot. |
... |
Additional arguments passed to the plot function. |
None.
Slave Petrovski and Quanli Wang
1 2 3 4 5 6 7 8 9 10 11 12 13 | library(QQperm)
data("example.Ps")
#print output to pdf file only if not running in interactive mode
if (!interactive()) {
pdf("qqplot.pdf")
}
qqplot(example.Ps$perm, example.Ps$observed)
if (!interactive()) {
dev.off()
}
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.