plot_sgwt_decomposition: Plot SGWT decomposition results

View source: R/visualization.R

plot_sgwt_decompositionR Documentation

Plot SGWT decomposition results

Description

Visualize SGWT decomposition components including original signal, scaling function, wavelet coefficients, and reconstructed signal

Usage

plot_sgwt_decomposition(SG, signal_name = NULL, plot_scales = NULL, ncol = 3)

Arguments

SG

SGWT object with Forward and Inverse results computed

signal_name

Name of signal to plot (default: first signal)

plot_scales

Which wavelet scales to plot (default: first 4)

ncol

Number of columns in the plot layout (default: 3)

Value

ggplot object with combined plots

Examples


# Create and analyze example data
data <- data.frame(x = runif(100), y = runif(100), signal1 = rnorm(100))
SG <- initSGWT(data, signals = "signal1")
SG <- runSpecGraph(SG, k = 15)
SG <- runSGWT(SG)

# Plot decomposition
plots <- plot_sgwt_decomposition(SG, signal_name = "signal1")
print(plots)


BioGSP documentation built on Feb. 2, 2026, 5:06 p.m.