Learn R Programming

BioGSP (version 1.0.0)

plot_sgwt_decomposition: 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)

Value

ggplot object with combined plots

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)

Examples

Run this code
# \donttest{
# 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)
# }

Run the code above in your browser using DataLab