% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot-purity.R
\name{plot_purity_distribution}
\alias{plot_purity_distribution}
\title{Plot the distribution of precursor ion purity scores per sample}
\usage{
plot_purity_distribution(
  datasets,
  supporting_datasets,
  options,
  single = FALSE
)
}
\arguments{
\item{datasets}{A named \code{list} containing a \code{purity_distribution} element.}

\item{supporting_datasets}{Unused; present for API consistency.}

\item{options}{A \code{list} of plot options.}

\item{single}{Unused; present for API consistency.}
}
\value{
A \code{ggplot} object.
}
\description{
Generates a violin or boxplot of \code{inPurity} scores grouped by sample,
with an optional threshold line.
}
\keyword{internal}
