% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot-purity.R
\name{purity_overlay_layer}
\alias{purity_overlay_layer}
\title{Add purity score overlay to a chromatogram plot}
\usage{
purity_overlay_layer(p, purity_scores, options)
}
\arguments{
\item{p}{A \code{ggplot} object (a chromatogram).}

\item{purity_scores}{A \code{data.frame} with columns \code{rt}, \code{in_purity},
\code{metadata_index}, and any additional sample columns merged in by the
render pipeline.}

\item{options}{A \code{list} of plot options (reads \code{options$purity_overlay}).}
}
\value{
The modified \code{ggplot} object.
}
\description{
Adds a \code{geom_point} layer to a chromatogram ggplot where each point marks
the retention time of an MS/MS acquisition event, coloured by
interpolated precursor ion purity (\code{inPurity}).
}
\keyword{internal}
