% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/middleware.R
\name{.guide_is_none_for_aes}
\alias{.guide_is_none_for_aes}
\title{Check whether a guide is suppressed for an aesthetic}
\usage{
.guide_is_none_for_aes(plot, aes_name)
}
\arguments{
\item{plot}{A ggplot object.}

\item{aes_name}{A single character string giving the aesthetic name to check.}
}
\value{
A logical scalar. Returns \code{TRUE} if the guide is suppressed
either through a scale or through \code{guides()}.
}
\description{
Internal helper that checks both scale-level and plot-level guide declarations
to determine whether the guide for a given aesthetic has been explicitly
suppressed.
}
\details{
This is used before adding ggplotplus legend-key overrides so that suppressed
legends are not accidentally restored.
}
\keyword{internal}
