| plot_ts | R Documentation |
plot_ts() draws the real and synthetic series one above the other for
each component; plot_acf() compares their autocorrelation functions.
plot_ts(real, synthetic = NULL)
plot_acf(real, synthetic, lag_max = 24L)
real |
A |
synthetic |
A synthetic |
lag_max |
Maximum lag for the autocorrelation function. |
A ggplot object.
fit <- fit_synthesizer(ldeaths)
syn <- generate(fit, seed = 1)
plot_ts(ldeaths, syn)
plot_acf(ldeaths, syn)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.