plot.dm_standardized: Plot method for standardized dendrometer output

View source: R/dm_normalize.R

plot.dm_standardizedR Documentation

Plot method for standardized dendrometer output

Description

S3 plotting method for objects returned by dm_standardize().

Usage

## S3 method for class 'dm_standardized'
plot(
  x,
  y = NULL,
  trees = "all",
  type = c("series", "seasonal", "heatmap", "boxplot"),
  x_axis = c("time", "doy", "season_doy"),
  facet_by = c("tree", "season_year", "none"),
  legend_by = c("season_year", "tree", "none"),
  in_season_only = TRUE,
  box_group = c("tree", "season_year"),
  alpha = 0.8,
  line_size = 0.45,
  point_size = 1.6,
  ...
)

Arguments

x

Object of class "dm_standardized" returned by dm_standardize().

y

Unused.

trees

Character vector of dendrometer series to plot, or "all" for all series.

type

Plot type. One of:

  • "series": standardized time series over calendar time

  • "seasonal": standardized seasonal trajectories by seasonal day

  • "heatmap": heatmap of standardized values by seasonal day and seasonal year

  • "boxplot": distribution of standardized values

x_axis

For type = "series", x-axis style: "time", "doy", or "season_doy".

facet_by

Faceting option. One of "tree", "season_year", or "none".

legend_by

Legend grouping. One of "tree", "season_year", or "none".

in_season_only

Logical. If TRUE, only observations inside the defined season are plotted.

box_group

For type = "boxplot", grouping variable on the x-axis: "tree" or "season_year".

alpha

Line or point transparency.

line_size

Line width.

point_size

Point size.

...

Unused.

Value

A ggplot2 object, returned invisibly.

Examples


data(gf_nepa17)

out_std <- dm_standardize(
  df = gf_nepa17,
  season_type = "NH",
  method = "robust_amplitude"
)

plot(out_std)
plot(out_std, type = "seasonal")
plot(out_std, type = "seasonal", facet_by = "tree", legend_by = "season_year")
plot(out_std, type = "seasonal", facet_by = "season_year", legend_by = "tree")
plot(out_std, type = "heatmap", facet_by = "tree")
plot(out_std, type = "boxplot", facet_by = "tree", legend_by = "season_year")



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