plot.mean_dm_detrended: Plot mean detrended dendrometer series

View source: R/mean.detrended.dm.R

plot.mean_dm_detrendedR Documentation

Plot mean detrended dendrometer series

Description

S3 plotting method for objects returned by mean_detrended.dm().

It can plot:

  • the mean detrended series (STD_DDM),

  • the autocorrelation-removed mean detrended series (RES_DDM),

  • or both together.

Usage

## S3 method for class 'mean_dm_detrended'
plot(
  x,
  y = NULL,
  type = c("series", "seasonal", "boxplot"),
  value = c("both", "STD_DDM", "RES_DDM"),
  seasons = NULL,
  x_axis = c("default", "date", "doy", "season_day"),
  facet_by = c("none", "season", "metric"),
  ncol = NULL,
  box_group = c("metric", "season"),
  alpha = 0.8,
  line_width = 0.8,
  point_size = 1.4,
  legend_position = "right",
  ...
)

Arguments

x

An object of class "mean_dm_detrended" returned by mean_detrended.dm().

y

Unused.

type

Plot type. One of:

'"series"'

Plot the time series over calendar time, DOY, or season day.

'"seasonal"'

Overlay seasons on a season-day scale.

'"boxplot"'

Show boxplots of the detrended values by season or metric.

value

Which variable to plot. One of:

'"both"'

Plot both STD_DDM and RES_DDM when available.

'"STD_DDM"'

Plot only the mean detrended series.

'"RES_DDM"'

Plot only the autocorrelation-removed mean detrended series.

seasons

Optional character vector of season_label values to retain.

x_axis

Character string controlling the x-axis. One of:

'"default"'

Uses calendar date for type = "series" and season day for type = "seasonal".

'"date"'

Use actual calendar date.

'"doy"'

Use calendar day-of-year.

'"season_day"'

Use vegetation season day.

facet_by

Character string controlling faceting. One of:

'"none"'

No faceting.

'"season"'

Facet by season_label.

'"metric"'

Facet by metric (STD_DDM, RES_DDM).

ncol

Optional integer giving the number of facet columns.

box_group

For type = "boxplot", grouping variable on the x-axis. One of "metric" or "season".

alpha

Numeric alpha transparency for lines/points.

line_width

Numeric line width.

point_size

Numeric point size.

legend_position

Character legend position passed to ggplot2.

...

Further arguments passed to or from other methods.

Value

A ggplot2 object.


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