plot_p_histogram: Histogram of p-values

Description Usage Arguments Value

View source: R/qc_visualizations.R

Description

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

Usage

1
2
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

Value

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


antonvsdata/amp documentation built on Jan. 8, 2020, 3:15 a.m.