% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/middleware.R
\name{.has_guide_none_for_aes}
\alias{.has_guide_none_for_aes}
\title{Check whether a scale suppresses a guide}
\usage{
.has_guide_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 a matching scale has
\code{guide = "none"}; otherwise returns \code{FALSE}.
}
\description{
Internal helper that checks whether a plot contains a scale for a given
aesthetic with \code{guide = "none"}.
}
\details{
This is used to preserve user intent when ggplotplus applies automatic legend
key overrides. If a user has explicitly suppressed a guide through a scale,
ggplotplus should not reintroduce that guide.
}
\keyword{internal}
