View source: R/specific_plots.R
plot_pval_hist | R Documentation |
This function takes a vector of p-values and plots a histogram of them using ggplot. It will add horizontal lines at 1 and the estimated proportion of true null hypotheses for reference.
plot_pval_hist(pvals, nbins = 100, ptn = limma::propTrueNull)
pvals |
A vector of p-values |
nbins |
Number of bins in the histogram |
ptn |
Estimated proportion of true null hypotheses. If not
provided, it will be estimated using |
a ggplot object
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.