% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/plot.dm_growth_fit.R
\name{dmgp_resolve_facet_scales}
\alias{dmgp_resolve_facet_scales}
\title{Resolve facet scales for curve plots}
\usage{
dmgp_resolve_facet_scales(
  x_var,
  facet_by = c("default", "tree", "year", "none")
)
}
\arguments{
\item{x_var}{Name of the x-axis variable.}

\item{facet_by}{Faceting mode.}
}
\value{
A character string accepted by [ggplot2::facet_wrap()] argument
  \code{scales}.
}
\description{
Internal helper used by [plot.dm_growth_fit()] to choose facet scale behavior.

For date-based plots faceted by year or by individual series-fit panels, the
x-axis is freed so that each year or season is shown only over its own
temporal window. This prevents yearly fitted curves from being plotted inside
the full dendrometer record window when several seasons are present.

For season-day and DOY plots, the x-axis remains shared so curves remain
directly comparable across facets.
}
\keyword{internal}
