plot.clim_twd_stats: Plot method for clim.twd.stats output

View source: R/stats.clim.twd.R

plot.clim_twd_statsR Documentation

Plot method for clim.twd.stats output

Description

Plots grouped trajectories or grouped ID-level metrics from clim.twd.stats().

Usage

## S3 method for class 'clim_twd_stats'
plot(
  x,
  y = NULL,
  type = c("trajectory", "id_metric"),
  ids = NULL,
  groups = NULL,
  band = c("none", "sd", "limit95", "both"),
  metric = c("lag_to_below_zero", "lag_to_max_adverse_decline", "lag_to_return_zero",
    "max_adverse_decline_value", "change_end_adverse", "change_end_full_period",
    "continuous_end_full_period"),
  facet_by = c("IDs", "group", "none"),
  legend_position = "bottom",
  main = NULL,
  ...
)

Arguments

x

An object of class "clim_twd_stats".

y

Unused.

type

One of "trajectory" or "id_metric".

ids

Optional numeric vector of IDs to plot.

groups

Optional character vector of group labels to plot.

band

One of "none", "sd", "limit95", or "both". Used for type = "trajectory".

metric

Metric column from x$id_summary for type = "id_metric".

facet_by

One of "IDs", "group", or "none".

legend_position

Legend position.

main

Optional title.

...

Further arguments passed to or from other methods.

Value

A ggplot2 object.


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