Plots empirical wavelet variance with the fitted theoretical curve and, for sum models, component-implied theoretical curves.
# S3 method for class 'gmwm2_fit'
plot(
x,
show_ci = TRUE,
col_emp = "black",
col_theo = "darkorange",
col_ci = "#e6f7fb",
lwd = 2,
pch_emp = 16,
pch_theo = 21,
cex_theo = 1.4,
legend_pos = "auto",
...
)A gmwm2_fit object.
Logical; if TRUE and available, show empirical CI bars.
Color for empirical WV points/line.
Color for theoretical WV line.
Color for empirical WV CI band.
Line width for theoretical curve.
Plotting character for empirical points.
Plotting character for theoretical points.
Size for theoretical points.
Legend position (e.g., "topleft") or "auto".
Additional arguments passed to plot().
The input object, invisibly.
n = 10000
mod = wn(20) + ar1(phi = .995, sigma2 = .2)
y = generate(mod, n = n, seed = 123)
plot(y)
fit = gmwm2(y, model = wn() + ar1() )
fit
#> GMWM fit
#>
#> Stochastic model
#> Sum of 2 processes
#>
#> [1] White Noise
#> Parameters : sigma2
#>
#> [2] AR(1)
#> Parameters : phi, sigma2
#>
#>
#> Estimated parameters
#> 1) White Noise: sigma2 = 19.96
#> 2) AR(1): phi = 0.9933, sigma2 = 0.1838
#>
#> Optimization
#> Convergence : converged (code 0)
#> Iterations : 136
#> Loss : 0.07507
plot(fit)