% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot-purity.R
\name{plot_isolation_window}
\alias{plot_isolation_window}
\title{Plot an MS1 spectrum with isolation window annotation}
\usage{
plot_isolation_window(datasets, supporting_datasets, options, single = FALSE)
}
\arguments{
\item{datasets}{A named \code{list} containing a \code{spectra} element.}

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

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

\item{single}{A \code{logical} value passed through to the base spectrum plot.}
}
\value{
A \code{ggplot} object.
}
\description{
Extends the standard spectrum plot by adding a semi-transparent rectangle
spanning the isolation window and a dashed vertical line at the precursor
m/z. Requires \code{in_purity}, \code{precursor_mz}, and
\code{isolation_window_half_width} columns in the dataset (merged from
\code{feature_metadata} by the render pipeline).
}
\keyword{internal}
