% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/middleware.R
\name{.is_log10_transformed_scale}
\alias{.is_log10_transformed_scale}
\title{Check whether an axis uses a log10 scale transformation}
\usage{
.is_log10_transformed_scale(built, axis)
}
\arguments{
\item{built}{A built ggplot object, typically produced by
ggplot2::ggplot_build().}

\item{axis}{A character string giving the axis to inspect. Expected values are
"x" or "y".}
}
\value{
A single logical value.
}
\description{
Internal helper used by bar/column coaching checks. Ordinary bars encode
values from a baseline of 0, but ggplot2 places the bar baseline at 1 on
log-scaled axes. This helper detects the log10 case so the coaching check can
test for visibility of the appropriate baseline.
}
\details{
The transformation is checked from the first panel because transformations are
scale-level properties rather than panel-specific properties. This helper
relies on ggplot2's built-plot internals and should therefore be treated as
best-effort/version-sensitive.
}
\keyword{internal}
