plot_p_histogram: Histogram of p-values

View source: R/qc_visualizations.R

plot_p_histogramR Documentation

Histogram of p-values

Description

Draws histograms of p-values with expected uniform distribution represented by a dashed red line

Usage

plot_p_histogram(p_values, hline = TRUE, combine = TRUE, x_label = "p-value")

Arguments

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

Value

if combine = TRUE, a ggplot object. Otherwise a list of ggplot objects


antonvsdata/notame documentation built on Sept. 14, 2024, 11:09 p.m.