% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{dfdr_plot_equal_chance}
\alias{dfdr_plot_equal_chance}
\title{Plot equal-chance plausibility by q-value bands}
\usage{
dfdr_plot_equal_chance(
  bands_tbl,
  title = "Equal-chance plausibility: decoy fraction by q-band"
)
}
\arguments{
\item{bands_tbl}{A q-band table (e.g. \code{out$bands} from
\code{\link{dfdr_equal_chance_qbands}}) containing columns \code{q_mean},
\code{decoy_frac}, and \code{n}.}

\item{title}{Character. Plot title.}
}
\value{
A \link[ggplot2:ggplot]{ggplot} object.
}
\description{
Visualises decoy fractions by q-value band (as produced by
\code{\link{dfdr_equal_chance_qbands}}). A horizontal reference at 0.5 indicates
the expected decoy fraction under an "equal-chance" region assumption.
}
\examples{
library(tibble)

bands_tbl <- tibble(
  q_mean = c(0.05, 0.15, 0.30, 0.45),
  decoy_frac = c(0.10, 0.20, 0.45, 0.52),
  n = c(2000, 1500, 800, 400)
)
dfdr_plot_equal_chance(bands_tbl)

}
