dmgp_resolve_facet_scales: Resolve facet scales for curve plots

View source: R/plot.dm_growth_fit.R

dmgp_resolve_facet_scalesR Documentation

Resolve facet scales for curve plots

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.

Usage

dmgp_resolve_facet_scales(
  x_var,
  facet_by = c("default", "tree", "year", "none")
)

Arguments

x_var

Name of the x-axis variable.

facet_by

Faceting mode.

Value

A character string accepted by [ggplot2::facet_wrap()] argument scales.


dendRoAnalyst documentation built on May 20, 2026, 5:07 p.m.