% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/forest_utils.R
\name{calculate_forest_layout}
\alias{calculate_forest_layout}
\title{Calculate table layout for forest plots}
\usage{
calculate_forest_layout(
  to_show_exp_clean,
  show_n,
  show_events,
  indent_groups,
  condense_table,
  effect_label,
  ref_label,
  font_size,
  table_width = 0.6,
  rangeb,
  center_padding
)
}
\arguments{
\item{to_show_exp_clean}{Data.table with formatted display data for the plot.}

\item{show_n}{Logical whether to include sample size column.}

\item{show_events}{Logical whether to include events column.}

\item{indent_groups}{Logical whether groups are indented (affects level column).}

\item{condense_table}{Logical whether table is condensed (affects level column).}

\item{effect_label}{Character string describing effect measure type.}

\item{ref_label}{Character string label for reference categories.}

\item{font_size}{Numeric font size for width calculations.}

\item{table_width}{Numeric proportion of total width for table (0-1).}

\item{rangeb}{Numeric vector of length 2 with plot x-axis range.}

\item{center_padding}{Numeric additional padding for effect column.}
}
\value{
List with table_width, forest_width, positions, rangeplot_start,
  total_width, and effect_abbrev components.
}
\description{
Computes column widths and positions for the table portion of a forest plot.
Determines spacing based on content width, font size, and desired table/forest
proportion. Returns positions in log-scale units for plot coordinate system.
}
\keyword{internal}
