Description Usage Arguments Examples
View source: R/plotting_functions.R
Obtain a 3D plot of the autocovariance surfaces of a given functional time series. This visualization is useful to detect any kind of dependency between the discretization points of the series.
1 | plot_autocovariance(fun.autocovariance, lag = 0, ...)
|
fun.autocovariance |
A list obtained by
calling the function |
lag |
An integer between 0 and |
... |
Further arguments passed to the |
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | # Example 1
N <- 100
v <- seq(from = 0, to = 1, length.out = 10)
sig <- 2
bbridge <- simulate_iid_brownian_bridge(N, v, sig)
nlags <- 1
lagged_autocov <- obtain_autocovariance(Y = bbridge,nlags = nlags)
plot_autocovariance(lagged_autocov,1)
# Example 2
N <- 500
v <- seq(from = 0, to = 1, length.out = 50)
sig <- 2
bbridge <- simulate_iid_brownian_bridge(N, v, sig)
nlags <- 4
lagged_autocov <- obtain_autocovariance(Y = bbridge,nlags = nlags)
opar <- par(no.readonly = TRUE)
par(mfrow = c(1,5))
for(k in 0:nlags){
plot_autocovariance(lagged_autocov,k)
}
par(opar)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.