plot.dm_wavelet_reconstruct: Plot method for dm_wavelet_reconstruct objects

View source: R/dm_wavelet_reconstruct.R

plot.dm_wavelet_reconstructR Documentation

Plot method for dm_wavelet_reconstruct objects

Description

Plots reconstructed or filtered cycle components extracted by dm_wavelet_reconstruct().

Usage

## S3 method for class 'dm_wavelet_reconstruct'
plot(
  x,
  y = NULL,
  series = NULL,
  type = c("compare", "reconstructed", "difference", "filtered"),
  facet = TRUE,
  legend_position = "right",
  line_width = 0.8,
  alpha = 0.7,
  main = NULL,
  ...
)

Arguments

x

An object of class "dm_wavelet_reconstruct".

y

Unused.

series

Optional character vector of series names to plot. If NULL, all available reconstructed series are used.

type

One of:

'"compare"'

Original and reconstructed series together.

'"reconstructed"'

Reconstructed component only.

'"difference"'

Original minus reconstructed.

'"filtered"'

Directly plot the returned filtered series. This is the extracted component for mode = "extract" and the component-removed series for mode = "remove".

facet

Logical. If TRUE, facet by series.

legend_position

Legend position passed to ggplot2.

line_width

Line width.

alpha

Alpha transparency for original series in compare plots.

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.