powered by
plot_ts() draws the real and synthetic series one above the other for each component; plot_acf() compares their autocorrelation functions.
plot_ts()
plot_acf()
plot_ts(real, synthetic = NULL)plot_acf(real, synthetic, lag_max = 24L)
plot_acf(real, synthetic, lag_max = 24L)
A ggplot object.
ggplot
A ts object (or numeric vector/matrix).
ts
A synthetic ts with the same number of series.
Maximum lag for the autocorrelation function.
fit <- fit_synthesizer(ldeaths) syn <- generate(fit, seed = 1) plot_ts(ldeaths, syn) plot_acf(ldeaths, syn)
Run the code above in your browser using DataLab