View source: R/plot.dm_growth_fit.R
| dmgp_resolve_facet_scales | R Documentation |
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.
dmgp_resolve_facet_scales(
x_var,
facet_by = c("default", "tree", "year", "none")
)
x_var |
Name of the x-axis variable. |
facet_by |
Faceting mode. |
A character string accepted by [ggplot2::facet_wrap()] argument
scales.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.