plot_decomposed_all.Rd
Plot all decomposed time series from comp_tsout_ens or mv_tsout_ens output.
plot_decomposed_all(obj, X = NULL)
The output from comp_tsout_ens
or mv_tsout_ens
functions.
The data matrix used as input to mv_tsout_ens
(not needed if obj
is output from comp_tsout_ens
).
A ggplot showing the time series with facets by decomposition method.
if (FALSE) {
set.seed(100)
n <- 600
x <- sample(1:100, n, replace=TRUE)
x[25] <- 200
x[320] <- 300
x2 <- sample(1:100, n, replace=TRUE)
x3 <- sample(1:100, n, replace=TRUE)
x4 <- sample(1:100, n, replace=TRUE)
X <- cbind.data.frame(x, x2, x3, x4)
out <- mv_tsout_ens(X, m1=c(1,2,4), compr=2)
plot_decomposed_all(out, X=X)
}