pval_distribution_plot {protti} | R Documentation |
Plot histogram of p-value distribution
Description
Plots the distribution of p-values derived from any statistical test as a histogram.
Usage
pval_distribution_plot(data, grouping, pval, facet_by = NULL)
Arguments
data |
a data frame that contains at least grouping identifiers (precursor, peptide or protein) and p-values derived from any statistical test. |
grouping |
a character column in the |
pval |
a numeric column in the |
facet_by |
optional, a character column that contains information by which the data should be faceted into multiple plots. |
Value
A histogram plot that shows the p-value distribution.
Examples
set.seed(123) # Makes example reproducible
# Create example data
data <- data.frame(
peptide = paste0("peptide", 1:1000),
pval = runif(n = 1000)
)
# Plot p-values
pval_distribution_plot(
data = data,
grouping = peptide,
pval = pval
)
[Package protti version 0.9.0 Index]