This function visualizes all features from runFishers() ranked by
BH-adjusted p-value and explicitly highlights those that pass the
significance threshold. Optionally, the top N most significant features
can be labeled.
plotFishers(fisher_df, alpha = 0.05, label_top_n = 5)A data frame returned by runFishers() containing
at minimum the columns:
gene
adj_p_value
sig_after_bh
BH-adjusted significance threshold. Default is 0.05.
Number of top-ranked features to label. Default is 5. Set to 0 to disable labeling.
A ggplot2 object.
Each point represents a feature. Color explicitly encodes whether a feature passes the BH threshold. Labels are applied only to the top-ranked features to preserve clarity.
if (FALSE) { # \dontrun{
plotFishers(fisher_results)
plotFishers(fisher_results, label_top_n = 0)
} # }