View source: R/visualization.R
| plot_sgwt_decomposition | R Documentation |
Visualize SGWT decomposition components including original signal, scaling function, wavelet coefficients, and reconstructed signal
plot_sgwt_decomposition(SG, signal_name = NULL, plot_scales = NULL, ncol = 3)
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) |
ggplot object with combined plots
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.