View source: R/pval_distribution_plot.R
pval_distribution_plot | R Documentation |
Plots the distribution of p-values derived from any statistical test as a histogram.
pval_distribution_plot(data, grouping, pval, facet_by = NULL)
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. |
A histogram plot that shows the p-value distribution.
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
)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.