% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/fig_height_h_barchart.R
\name{extract_ggplot_theme_info}
\alias{extract_ggplot_theme_info}
\title{Extract plotting dimensions from ggplot theme}
\usage{
extract_ggplot_theme_info(plot_obj)
}
\arguments{
\item{plot_obj}{A ggplot2 object}
}
\value{
A list with components:
\describe{
\item{base_size}{Numeric. The base text size in points from the theme.}
\item{legend_adds_height}{Logical. TRUE when the legend is positioned at
the bottom or top (adding vertical space), FALSE when at the sides,
inside the panel, or hidden.}
}
}
\description{
Extracts the base font size and legend position from a ggplot2 object's
complete theme (global theme + plot-level overrides) to improve automatic
height estimation.
}
\keyword{internal}
