plot.ZG_output_clim: Plot climate-augmented zero-growth output

View source: R/plot_climate_phase.R

plot.ZG_output_climR Documentation

Plot climate-augmented zero-growth output

Description

S3 plotting method for objects of class ZG_output_clim. This allows climate-augmented zero-growth outputs to be visualized directly with the generic plot() function.

Usage

## S3 method for class 'ZG_output_clim'
plot(
  x,
  y = NULL,
  ...,
  climate_var = NULL,
  climate_vars = NULL,
  numeric_vars = NULL,
  compare = FALSE,
  temporal = NULL
)

Arguments

x

An object of class ZG_output_clim.

y

Optional climate variable name passed as the second argument.

...

Additional arguments passed to dm_plot_climate() or dm_plot_climate_compare().

climate_var

Character. Name of one climate variable to plot.

climate_vars

Character vector of climate variables for comparison plots.

numeric_vars

Character vector of numeric variables used for correlation or regression heatmaps.

compare

Logical. If TRUE, dm_plot_climate_compare() is called.

temporal

Optional calendar grouping for distributions; rows are not aggregated. Compatible with older examples. For boxplots and violins, calendar groups preserve individual rows.

Value

A ggplot2 object, returned invisibly.

Examples


# plot(zg_clim, climate_var = "VPD_mean_phase", scale = "cycle",
#      type = "boxplot")



dendRoAnalyst documentation built on Oct. 2, 2026, 9:06 a.m.