% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plots.R
\name{dfdr_plot_pep_reliability}
\alias{dfdr_plot_pep_reliability}
\title{Plot PEP reliability}
\usage{
dfdr_plot_pep_reliability(bins_tbl, title = "PEP reliability")
}
\arguments{
\item{bins_tbl}{A PEP reliability bins table (e.g. \code{out$bins} from
\code{\link{dfdr_pep_reliability}}) containing columns \code{pep_mean},
\code{decoy_rate}, and \code{n}.}

\item{title}{Character. Plot title.}
}
\value{
A \link[ggplot2:ggplot]{ggplot} object.
}
\description{
Visualises PEP reliability by plotting the observed decoy fraction against the
mean predicted PEP in each bin (from \code{\link{dfdr_pep_reliability}}). Point
size reflects bin counts.
}
\examples{
library(tibble)

bins_tbl <- tibble(
  pep_mean = c(0.05, 0.15, 0.25, 0.35),
  decoy_rate = c(0.06, 0.14, 0.30, 0.40),
  n = c(500, 400, 250, 120)
)
dfdr_plot_pep_reliability(bins_tbl)

}
