% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{dfdr_plot_dalpha}
\alias{dfdr_plot_dalpha}
\title{Plot decoy support \eqn{D_\alpha} versus \code{alpha}}
\usage{
dfdr_plot_dalpha(
  stab_tbl,
  xlab = "alpha (log10)",
  title = "Decoy support D_alpha vs alpha"
)
}
\arguments{
\item{stab_tbl}{A stability table (e.g. from \code{\link{dfdr_curve_stability}})
containing columns \code{alpha}, \code{D_alpha}, and \code{list}.}

\item{xlab}{Character. X-axis label.}

\item{title}{Character. Plot title.}
}
\value{
A \link[ggplot2:ggplot]{ggplot} object.
}
\description{
Plots the number of accepted decoys at each threshold \code{alpha}. This is a
key stability indicator: very small \eqn{D_\alpha} implies granular/unstable
behaviour of target-decoy based estimates.
}
\examples{
library(tibble)

stab_tbl <- tibble(
  list = rep(c("A", "B"), each = 4),
  alpha = rep(c(1e-3, 2e-3, 5e-3, 1e-2), times = 2),
  D_alpha = c(5, 8, 20, 40, 2, 3, 6, 10)
)
dfdr_plot_dalpha(stab_tbl)

}
