View source: R/qc_visualizations.R
plot_p_histogram | R Documentation |
Draws histograms of p-values with expected uniform distribution represented by a dashed red line
plot_p_histogram(p_values, hline = TRUE, combine = TRUE, x_label = "p-value")
p_values |
list or data frame, each element/column is a vector of p-values. The list names are used as plot titles |
hline |
logical, whether a horizontal line representing uniform distribution should be plotted |
combine |
logical, whether plots of individual p-value vectors should be combined into a single object. Set to FALSE if you want to add other plots to the list before plotting |
x_label |
the x-axis label |
if combine = TRUE, a ggplot object. Otherwise a list of ggplot objects
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.