Generate a p-value histogram from a DEG table inside a geneda object. This function uses raw p-values only and highlights p-values below a given threshold (default 0.05).

PlotPValHist(object, assay, bins = 40, alpha = 0.05, title = NULL)

Arguments

object

A geneda object containing DEGs in the DEGs slot.

assay

The name of the DEG table to use (must contain a "pvalue" column).

bins

Number of histogram bins (default 40).

alpha

Significance threshold (default 0.05). Bars representing p-values < alpha will be highlighted.

title

Optional title for the plot.

Value

A ggplot2 object