Plot rejections vs. p-value cutoff
Plot the number, or fraction, of null hypotheses rejected as a function of the p-value cutoff. Multiple sets of p-values are accepted, in a list or in the columns of a matrix, in order to permit comparisons.
rejection_plot(p, col, lty = 1, lwd = 1, xlab = "p cutoff", ylab = "number of rejections", xlim = c(0, 1), ylim, legend = names(p), at = c("all", "sample"), n_at = 100, probability = FALSE, ... )
p |
The p-values to be used for plotting. These may be in the columns of
a matrix, or in the elements of a list. One curve will be generated
for each column/element, and all |
col |
Colors to be used for each curve plotted. Recycled if necessary. If
|
lty |
Line styles to be used for each curve plotted. Recycled if necessary. |
lwd |
Line widths to be used for each curve plotted. Recycled if necessary. |
xlab |
X-axis text label. |
ylab |
Y-axis text label. |
xlim |
X-axis limits. |
ylim |
Y-axis limits. |
legend |
Text for legend. Matrix column names or list element names (see
|
at |
Should step functions be plotted with a step at every value in
|
n_at |
When |
probability |
Should the fraction of null hypotheses rejected be reported instead
of the count? See the |
... |
Other arguments to pass to the |
A list of the step functions used for plotting is returned invisibly.
Richard Bourgon <bourgon@ebi.ac.uk>
# See the vignette: Diagnostic plots for independent filtering
Please choose more modern alternatives, such as Google Chrome or Mozilla Firefox.