% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/drug_barplots.R
\name{plot_leapr_bar}
\alias{plot_leapr_bar}
\title{Plot leapR pathway bars (single panel)}
\usage{
plot_leapr_bar(
  res_df,
  title = NULL,
  top_n = 15,
  star_thresholds = c(0.05, 0.01, 0.001),
  wrap = 42,
  max_stars = 5L,
  fill_sig = "#2C7BB6",
  fill_ns = "#BFD7FF",
  outline = NA,
  axis_text_y_size = 8,
  axis_text_x_size = 9
)
}
\arguments{
\item{res_df}{A leapR df containing BH_pvalue (or pvalue) and a pathway/term label column.}

\item{title}{Plot title.}

\item{top_n}{Number of top pathways/genes to display.}

\item{star_thresholds}{list of numeric significance thresholds for star annotations.}

\item{wrap}{Wrap width for pathway labels (helps formatting).}

\item{max_stars}{Maximum number of stars to draw per bar (default 5).}

\item{fill_sig}{Fill color for significant bars}

\item{fill_ns}{Fill color for non-significant bars.}

\item{outline}{Bar border color.}

\item{axis_text_y_size}{Font size for y-axis (category) labels.}

\item{axis_text_x_size}{Font size for x-axis (numeric) labels.}
}
\value{
A \pkg{ggplot2} object (or \code{NULL} if nothing to plot).
}
\description{
This plotting helper expects leapR generated results to plot.
It will use BH_pvalue if present, otherwise pvalue.
}
